Visual Studio :: Get The Line Number In Code Programmatically?
Jun 17, 2010I want to get the line number of my code -- not in case of an exception though. Is there a way to capture this?
[Code]....
I want to get the line number of my code -- not in case of an exception though. Is there a way to capture this?
[Code]....
i can't debug the code line by line code, i have break point in form load event, but it skipthe breakpoint , can't able to debug.
View 6 Replies I just installed Visual studio 2010 ultimate RC on my windows 7 server. It doe snot show line number. So I went to Tool->Option->Editor, however, there is no where I cna find line number choice.
I used to have Visual Studio 2010 professional beta, it has the same problem, no line number to show up. However, it has a check box: line number. Even if I check the box, still no line number to show up.
Many times I remove in the code window (Using Replace and Regular Expression). Is ther a quicker way of doing this without writing a macro? The best way would be a shortcut key.
View 2 RepliesI knwo how to capture a line number from en exception error...but I have a need to capture the line number that certain things occur wihtout having excpetion thrown. I guess one way would be to force an exception to occur and then trap the line number but I dont really want to do that because that seems clumsy to me.
What woudl be nice is if there were some way to just say "what line of code is this?" programmatically.
so that regarldess of any code changes when I need that information to be grabbed it alwasy grabs the right value.
how to make my source code to display on one line instead of multiple in source view. The display drives me batty when I'm trying to find something and I would prefer to display across the page instead of multiple lines down the page.
View 2 Repliescan Visual Studio 2008 be All-In-One tool to integrate source code continuously from team members, build, unit test?
Having used Visual Studio Team Edition 2005, unit testing each method within VS itself. I strongly believe that it is feasible to add-on tools. Example ankhsvn tool to use SVN from Visual studio [URL]
In my investigating i have come across number of tools(shown below) to use with Visual Studio 2008 professional
Development tool:- Visual Studio 2008 professional using Subversion as source control tool. Continuous Integration:- Hudson or Cruise control Build tool:- NAnt Testing:- NUnit, Selinium As Visual Studio 2008 can be used for unit testing I think NUnit is out of consideration.
In the same way i would like to have any other tools/add-ons to Visual studio to implement continuous integration, building and unit testing. This process should be automated such a way source code between team members is continuously integrated, built and unit testing is done as configured.
Objective is to use few number of tools as add-on to Visual Studio or achieve most from Visual studio itself (example unit testing). Visual Studio should be all in one tool.
I am aware that Team Foundation Server best suits my requirement, but it is out of scope due to its cost.
This is strange behavior that I've noticed with Visual Studio. I'm correcting some namespace and scope issues with in a project. When I start to address the issues with one of the files I start off with 12 errors. Then I open the file and the number of errors increase to 36. But then when the file is open and I build the project it says that there are only 12 errors. Why would it show that there are 36 errors initially when there are really only 12 when the solution is built?
View 1 RepliesIn VWD, we can customize-edit-command to your heart's content. But there is none for what I used to get in NetBeans or Eclipse: go to the last edited position (after 5 minutes of search for the correct spelling of some name in the page).I know there is Navigate Back, but I often need to do click [Navigate Back] 10 times to get to 'last edited line'.
It would be nice if I can navigate through the 'green bars' (Yes, it is very difficult to find out what are green bars, once you found out, you want to be able to visit each of these using next or prev).
Also where is the documentation or help ofr each of the some 50 edit commands such as 'go to Reference'.
i notice that when i start next line of code and i press enter, it recompacts itself and the continued line moves left a bit... then if i place focus on the second line and press enter again, it (the second line) moves to the left some more, and it keeps doing this every time i focus on second line and press enter. this is as you can imagine, really annoying!!
how can i make it so that my second (and third etc) lines are formatted in a pre-determined way so they are always a certain amount of tabs indented to the right from where my line 1 starts??
I m looking for a Shortcut to :Delete currentline and below lines 1 line upward.
currently Ctrl+X (without selection) does this.But it also removes clipboard to empty text.
isnt there a shortcut Just deletes current line and 1 line upward next lines without clearing Clipboard ?
How do I build a web application project from command line using Web Developer Express 2010?
I am using the same command format that I would use with devenv.exe (Visual Studio), so I can evaluate us moving forward to VS2010. However, I am having real trouble building our code. Our solution consists of 4-5 projects, consisting of assemblies. The last assembly is the web site code. The root .sln file is the one which when opening in the IDE can click Rebuild All, and the DLL's of each project are generated and then brought into the website project.
However, when I run vwdexpress.exe from the command line nothing happens and no Dlls are generated. This is not giving me any confidence to run with VS2010.
the command line is like so:
C:inetpubwwwrootmyprojectvwdexpress /build release mysolution.sln
The in folders of each respective project are empty, but it takes 3-4 seconds for the command to finish, which gives me the impression it did something.
System.NullReferenceException: Object reference not set to an instance of an object
at ASP.document_down_upload_aspx.__Render__bctrl_23 (System.Web.UI.HtmlTextWriter __output, System.Web.UI.Control parameterContainer) [0x0008a] in /home/rajiv/Documents/8erp_final (2)/erp/Document_Down_Upload.aspx:24
We need through command line to build our site (which we already do using msbuild.exe), but the resulting files are way too many and it takes our to ftp it to the server. I am able to publish the website and reduce its size by ~90%; however, we need to do this through command line not manually using the GUI. I have read many postings but noone is clear on how to do it (and msbuild seems to no be able to do this). Can anyone provide me a link. We are using Visual Studio 2010 and DOT NET4.0
View 3 RepliesJust wondering if it is possible to set it so that when you have too many files open in Visual Studio, rather than display the little down arrow icon, it drops the tabs down onto another line?
View 5 RepliesIs there any tool for Visual Studio 2008 which can reformat ASPX code to make it more presentable (eg insert line breaks, format the lines so they wrap when necessary, etc)?
View 5 RepliesIs there any way to increase the number of tab in VS 2008?
View 5 RepliesHow do I set the number of Most Recent Projects displayed. I have tried the obvious -- Tools-Options..... but I cannot see it.
View 9 Repliesis it posssible to autoincrement version number for every checki-in with TFS 2008? How?
View 1 RepliesI am New to VB.NET, Iam having a problem such as transaction numberDuplicatiion, Because so many users using a application, Some times transaction trnumber has been duplicatedIn my code i open LOCATION TABLE AND FETCH JOURNAL NUMBERAND INCREASE JOURNAL NUMBER WITH 1 AND THEN UPDATED.SOME TIMES JOURNAL NUMBER HAS BEEN DUPLICATED IN TRANSACTION FILE
View 1 RepliesWhen writing up a codebehind in Visual Studio for ASP.NET web forms applications, I often use the dropdowns at the top of the window to autogenerate page event handlers (e.g. Page_Load, Page_PreRender). I've noticed that sometimes Visual Studio likes to add numbers to these function names like "Page_Load1" or "Page_PreRender2".
View 2 Replieswhat exactly is the difference between build number and the revision number in assembly.cs file?
For instance the assembly version is 1.2.407.7890
Major = 1
Minor = 2
Build = 407
Version = 7890
Now when i make some change in the projects file and recompile it, only the version number changes. When does the build number changes?
In what scenario does the build number changes?
Also let me know what exactly is AssemblyFileVersion? How is it different from AssemblyVersion?
I'm missing a the code browser when I create pages that have the code not placed in a seperate file. For pages with .asp.vb files I get the browser correctly.
I think it's called a code browser but just in case it's not I mean the dropdown that shows Page Events, Buttons and other controls that can be selected along with their events.
How do I turn on those dropdowns for pages with code behind that uses <script> tags in the actual .aspx page?
Included (Showing page events just under the tab):
Missing
I'm new to the forum and to ASP.NET. Is there a way to obfuscate code with VWD?
I read about Dotfuscator but it appears it's only available for Visual Studio. I searched the forum but did not see a solution fro VWD.
all of a sudden i cant copy or paste code snippets in my code. what can it be? neither i can copy the folder from the wwwroot folder.
View 1 Replies