| How to debug a function executed by a Thread (7 replies) |
| microsoft.public.vsnet.debugging |
| Hi all, I don't know how to step through the process function in the statement: new Thread(new ThreadStart(Process)).Start() When I hit F11, the function is not hit. It just directly goes to the next statement. Thanks, Betty |
|
| VS stops debugging when on breakpoint due to VsHost Stackoverflow (2 replies) |
| microsoft.public.vsnet.debugging |
| My program runs fine, but when I set a breakpoint in certain areas, the debugger stops properly, but then after about 10 seconds closes suddenly. In the Output Window I noticed that the exit code of VsHost is is stack overflow 2147023895 (0x800703e9). I could track down the statement which is causing the problem. It is an assignment to a property in a constructor. It looks something like this: pub... |
|
| Regular Expressions, Multiline Mode, and Find and Replace (4 replies) |
| microsoft.public.vsnet.debugging |
| I have been using the Find and Replace dialog to do some searching using regular expressions. However, I am having trouble figuring out how to specify Multiline Mode so that I can use some of the special characters such as ^ to specify the beginning of a line. I know the mode character for Multiline Mode is "m", but I am still not sure exactly what to do. Can somebody help me figure out how to spe... |
|
| solution properties access from addin (2 replies) |
| microsoft.public.vsnet.debugging |
| Hi All, Does anybody have an idea how to access "Debug Source Files" property of solution from a Visual Studio add on ( .NET )? Thanks in advance for your help, Mark. |
|
| Can I Set a Breappoint when a Variable Changes? (2 replies) |
| microsoft.public.vsnet.debugging |
| Hi all, I'm using VS 2008. I have some C# code and I'd like to break whenever a variable changes, regardless of what code changes it in other words, I'd like to say, "Whenever this variable changes its value, break." Can this be done for a C# program? Thanks |
|
| Vista Update Breaks VS2005 F5 auto-debug (2 replies) |
| microsoft.public.vsnet.debugging |
| My machine auto installed a lot of Vista updates a couple of days ago when I re booted, and ever since I haven't been able to run auto debug (F5) from within Visual Studio 2005. I can manually attach to process just can't auto debug. I think the update must have made some changes to permissions, but don't know where to start looking. Error I get is: "Unable to start debugging on the web server. An... |
|
| Remote Call Profiler for Windows Embedded CE 6.0 (2 replies) |
| microsoft.public.vsnet.debugging |
| I'm working with Visual Studio 2008 on a native C project. I recently upgrade from Windows CE 5.0 to Windows Embedded CE 6.0. Now, I want to profile the application to see if the change of OS affects the performance. The problem is that it's impossible to connect to the remote device with the Remote Call Profiler tool. I installed Platform Manager 6.0 and use the tool shipped with it. The CE 6.0 d... |
|
| and question about js file and "alert" (2 replies) |
| microsoft.public.vsnet.debugging |
| Hi all, I am trying to write a simple code in a *.js file. I'm on a pc that has no dev environment, all I can think of is that I can atleast make a *.js file and write code in it and double click to run it. But I just started doing that and I wrote this simple code: proc(); function proc() { alert('hey'); } put it in a js file and run but i get the following error: Windows Script Host Script: D:\o... |
|
| Debug session stops suddenly after few seconds waiting in break po (2 replies) |
| microsoft.public.vsnet.debugging |
| Hi After working on a VS project for 3 years, Visual Studio suddenly behaves funny. When I set a breakpoint, Visual Studio stops propperly, but after 5 10 seconds the debugging mode ends, without me doing anything. I get the same problem, when I use: System.Diagnostics.Debugger.Break(); But if I call StopInDebugger(), which is in another class, Visual Studio stays in the debugging mode, as long I ... |
|
| Why not ship Debug builds? Is Release Mode much faster than Debug? (2 replies) |
| microsoft.public.vsnet.debugging |
| Hello, For years (and years) we have built and released our proucts using the Debug build. We don't even bother building a Release version. This has the main benefit that it is easier to debug (because the code isn't optimized). I know you can debug release builds, but this isn???t trivial, especially for remotely debugging a web application. I've been investigating doing things "properly": develo... |
|
| OnLoad method (4 replies) |
| microsoft.public.vsnet.debugging |
| Hi all, When I step through the code, this OnLoad method has been called twice consecutively. What does that mean? Does that mean on the *.aspx, I have two MyLinkButton objects? Same to any other controls, like *.ascx, it could be executed consecutively more than once. public class MyLinkButton : LinkButton { protected override void OnLoad(System.EventArgs e) { Page.ClientScript.RegisterStartupScr... |
|
| Disable first-chance exception only in specific function (4 replies) |
| microsoft.public.vsnet.debugging |
| Good Morning, Is it possible to disable first chance exception handling within a specific function only? I need to see first chance exceptions for that exception in other functions in the program, but this particular one calls an external DLL which causes the first chance exception and then handles it... Mike |
|
| Debug.WriteLineIf - Compile Error in Realse Version (4 replies) |
| microsoft.public.vsnet.debugging |
| Visual Studio 2005 SP1 VB.NET I have the following construct: #If DEBUG Then Dim bDebug As Boolean True #End If Debug.WriteLineIf(bDebug, System.Reflection.MethodBase.GetCurrentMethod.Name & " Debugging Started") Debug.Flush() Debug.Indent() This compiles file when the Debug configuration is used. When the Release configuration is used the compiler identifies an error on the Debug.WriteLineIf line... |
|
| Debugging Classic ASP with VS2008+SP1 = crash! (3 replies) |
| microsoft.public.vsnet.debugging |
| I manually attach to the process, and debugging works fine. I attempt to stop debugging and VS2008 crashes. Exactly like this guy: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID 352867 Except, I'm not using any beta software. Here's more details: 1) VS2008 with SP1 is installed on Windows Server 2008 64bit with SP1. 2) That same server has IIS7 running, with ASP c... |
|
| Can't get Trace commands to work (2 replies) |
| microsoft.public.vsnet.debugging |
| I'm having a problem with my Trace commands simply being skipped over and haven't been able to find a solution anywhere. Below is the simple code. I gave "Everyone" and NETWORK SERVICE full control over the C:\Logs directory because I read that there might be a permissions issue, but that didn't help. The file does get created, but Trace.Write and Trace.Flush commands below are skipped over straig... |
|
| Line Numbers in vs2005/installed service (4 replies) |
| microsoft.public.vsnet.debugging |
| I have a service created with vs2005. When I debug in vs2005 the errors have the linenumbers. When I compile in debug and install the service I do not get line Numbers on errors. Thank you Jerry |
|
| F5: "Mixed-mode debugging is not supported on Windows 64-bit platforms." (2 replies) |
| microsoft.public.vsnet.debugging |
| Hi, Just got a new machine with Windows Server 2008 SP1 64 bit. I installed Visual Studio 2008 Professional. The system has IIS7. I then proceeded to migrate several web projects from my old machine (server 2003 SP2 32 bit, IIS6, Visual Studio 2008 SP1). Problem: When I open one of the web sites in VS2008 and hit F5 to debug I get the following message: "Unable to start debugging on the web server... |
|
| Step into .Net src:"no source code available for the current locat (2 replies) |
| microsoft.public.vsnet.debugging |
| I have read Shawn Burke's blog and right configured my Visual Studio follow it. A lot of PDB files had been downloaded in my local source folder. When breakpoint was hit, I checked the Modules window that the symbols was loaded from the local source folder, but when I press F11 or click "Step into specific", I still got the dialog "There is no source code available for the current location". I hav... |
|
| Can't get Trace commands to work (2 replies) |
| microsoft.public.vsnet.debugging |
| I'm having a problem with my Trace commands simply being skipped over and haven't been able to find a solution anywhere. Below is the simple code. I gave "Everyone" and NETWORK SERVICE full control over the C:\Logs directory because I read that there might be a permissions issue, but that didn't help. The file does get created, but Trace.Write and Trace.Flush commands below are skipped over straig... |
|
| Multi-Line Find and Replace (2 replies) |
| microsoft.public.vsnet.debugging |
| When using the Find and Replace dialog, how can I replace something with a multi line string. For example, if I want to replace: head /head With: head title Sample Title /title /head What would I put in the Replace with: field, and how would I do it? If I try to copy and paste a multi line string into this field only the first line is used. I know that there is a way to do multi line Find and Repl... |
|
| Debugging ASP.NET Web Applications Using Visual Studio 2008's Device Emulators (3 replies) |
| microsoft.public.vsnet.debugging |
| I am somewhat new to using Visual Studio's Device Emulators, and am trying to figure out how to use them to debug ASP.NET pages. I am able to use the Device Emulators to visit websites and do other things, but I have not yet managed to figure out how to debug my web applications with them. Can someone please help me here? Thanks. Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com... |
|
| call stack window in VS debugger (3 replies) |
| microsoft.public.vsnet.debugging |
| Hi, I have a question: In the call stack window (VS2005), the name of the function is displayed with the full namespace (for example: aaa.bbb.ccc.ddd.methodName(params...)). Is it possible to show only the name of the function (in my case the namespace is too long and I don't see the name of the function)? Thanks, Alon. |
|
| unable debugging client scripts VS 2008 Vista (2 replies) |
| microsoft.public.vsnet.debugging |
| Hello, I have tried all common procedures like http://msdn.microsoft.com/en us/library/k2h50zzs(VS.80).aspx to convince my visual studio and IIS and IE to hit the breakpoint in javascript in ASP NET application. Unfortunatelly no success, even no Script Documents will appear in Solution Explorer. my configuration is IE7 version 7.0.6001.18000 Update Versions:0; 3283; visual studio 2008 9.0.21022.8... |
|
| Re-Re-Repost: Cannot debug Classic ASP with VS2008+SP1 (5 replies) |
| microsoft.public.vsnet.debugging |
| Apologies!! Working with MSDN support to get this no spam alias working... Here's my issue: I'm trying to debug a classic ASP application with VS2008 SP1. I manually attach to the process, and debugging works fine. When I attempt to stop debugging, VS2008 crashes. Exactly like this guy: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID 352867 Except, I'm not using an... |
|
| REPOST: Specifying app relative path in debug command line? (6 replies) |
| microsoft.public.vsnet.debugging |
| I am reposting this as my MSDN email alias apparently was cleared by MS when I renewed my MSDN subscription. Hopefully I'll get a response now. I am using NUnit (in VS2008SP1) and setting startup project's "Start External Program" to point to NUnit.exe. This works fine; however I want to pass (in the "Command Line Arguments" box) the path to the test dll. This also works fine BUT this path is an a... |
|
| Debugging asynchronous web services (2 replies) |
| microsoft.public.vsnet.debugging |
| Is there any way to debug from an asp.net web app into an asynchronously called web service? Any help would be greatly appreciated. Mervin Williams |
|
| error running Spy++ (2 replies) |
| microsoft.public.vsnet.debugging |
| running VS 2008, .Net 3.5 on Vista Home Premium.. just finished installing C from the install disk in order to get Spy but get an error when i run it.. something about "side by side configuration is incorrect". any ideas? i've been able to find references to this error on the web in relation to other applications but none for Spy. |
|
| How to determine line causing error (6 replies) |
| microsoft.public.vsnet.debugging |
| Still migrating and recoding apps from vb6 to vs 2008. Can't see the easy answer to this one. Anyone able to help? When a line throws an error it drops to my catch block and displays an error message, etc. However, when debugging I need to know exactly what like caused the error. by the time I break into the code the cursor is already in the Catch block. How do I know exactly what line caused that... |
|
| Automatically attach to child processes? (2 replies) |
| microsoft.public.vsnet.debugging |
| I have a solution with multiple executable projects. The purpose of one of them (we'll call this the parent) is to spawn one or more copies of some of the others (the children). Assuming I'm already debugging the parent, is it possible to have the Visual Studio debugger automatically attach to the children? |
|
| Problem with dbghelp / imagehlp API (2 replies) |
| microsoft.public.vsnet.debugging |
| I was trying to write some code to give me live symbol / debug information inside the same program. So an executable foo.exe which can contains logic based on the symbols in foo.exe while it is running. I've gotten pretty far, but some of the methods always seem to fail and return ERROR INVALID PARAMETER. An example is SymGetTypeInfo. Another is any of the SymEnum* methods. I'm definitely passing ... |
|
| generic error occured in GDI+ (2 replies) |
| microsoft.public.vsnet.debugging |
| hi, i am trying developed a software for one institution here in kerala(india)... So, i have used malayalam font ..i did this in c# in visual studio 2008..and for the malayalam i use the keyman 6.0 and the malayalam font phonetic malayalam(trial version).Bt there are some characters in malayalm like ????????????, ????????????..which gets saved to the access file bt cannot get a report or print fro... |
|
| debugging a third party component (12 replies) |
| microsoft.public.vsnet.debugging |
| Hi all, I guess I did not do the right thing. Somehow I cannot debug our third party's component. We have a component developed by our vendor. Both dll and pdb were provided. So I think I can debug this component if I want to. I put both these two files in C:\symbols\ and I also download all symbols from msdl.microsoft.com/download/symbols to my local c:\symbols too. In visual studio, I go to tool... |
|
| error when switch from code view to design view (2 replies) |
| microsoft.public.vsnet.debugging |
| Hi all, I got the following error when I switch from code view to design view of some third party controls. But we don't have any build errors. "cannot swith to design view because of the errors in the page. Please correct all errors labeled 'cannot switch' in the Error List and try again." It is complaining the custom control with the List having wavy red line below: ui:List ... /ui:List I looked... |
|
| breakpoint was set to the same file name in different directory (9 replies) |
| microsoft.public.vsnet.debugging |
| Hi all, I am using vs2005. I also have vs 2003 installed on my computer(XP pro) When I tried to insert a breakpoint by clicking on the left side of a line in the file named default.aspx.cs in a directory, GS, it automatically jumps to the same file named default.aspx.cs in a different dir, say SA. And the breakpoint was set in that unintentional place of that file under SA. It doesn't happen to ot... |
|
| How to step into dynamic code? (3 replies) |
| microsoft.public.vsnet.debugging |
| In a C# application I need to invoke a method dynamically, as in: returnVal theMethod.Invoke(this, new object[] { rawParams }); How can I step into this code with the VS2008 Pro debugger? When I attempt to use the standard F11 to step into the line it steps over it instead. The only option that even seemed remotely applicable was the "just my code" option so I turned that off but it made no differ... |
|
| VS2008 & SQL Server Debugging (5 replies) |
| microsoft.public.vsnet.debugging |
| I am trying to get SQL Debugging working in VS2008. I want to be able to select a stored procedure in a data conneciton from the server explorer and select step into. I have both VS2005 Team Dev and VS2008 Team Dev installed. I can debug from VS2005 but not from VS2008. I want to do this debugging against a server, but for this question I am just trying to get it working locally On my local PC I h... |
|
| Remote Debugger service is unable to connect to this computer (9 replies) |
| microsoft.public.vsnet.debugging |
| I have already tried many of the suggestions I found when searching for this error message. My Visual Studio 2005 host is Vista; the remote machine is Windows 2003. The remote machine is running the Remote Debugger as a service under the LocalSystem credentials. The VS host is running with credentials that has local admin access on both machines. Devenv.exe is in my client firewall exception list.... |
|
| VS 2008 debugging of classic ASP crashes on STOP (2 replies) |
| microsoft.public.vsnet.debugging |
| On Visual Studio 2008 sp1 (on Vista sp1), when I stop debugging a classic ASP site, VS displays a dialog box: "Visual Studio 2008 has stopped working", loses information on which files were open, loses settings changes, and then restarts VS 2008. To debug classc ASP I start without debugging, attach to w3wp, debug some classic ASP and then stop debugging. Stopping debugging causes the symptom I de... |
|
| No Managed Newsgroup Help? (2 replies) |
| microsoft.public.vsnet.debugging |
| On 2/15 I posted a message (Specifying app relative path in debug command line?), but have not gotten any response at all. This is a managed newsgroup, right? We're supposed to get a response, right? Did I miss something and this is no longer a benefit of my MSDN subscription? |
|
| NoStepInto interaction with callbacks (2 replies) |
| microsoft.public.vsnet.debugging |
| I use boost / stl a lot in my C code, and especially when you start using boost::lambda a lot, using a callback can involve multiple levels of indirection before it finally invokes your callback. I tried HKLM\Software\Microsoft\VisualStudio\9.0\NativeDE\StepOver and made a value "boost:\:\.*" but when I go to invoke my callback (which is an object of type boost::bind) it steps over everything incl... |
|
| Javascript Debug Object Expected Error (2 replies) |
| microsoft.public.vsnet.debugging |
| Debug doesn't work for external JavaScript file included in HTML page. Debug Error at Body tag, OnLoad event: Jscript runtime error: Object expected Default.aspx Page head runat "server" title /title script language "javascript" src "test.js" type "text/javascript" /script /head body onload "TestMethod();" form /form /html test.js File function TestMethod() { alert('Yes'); } My configuration is: W... |
|
| Visual Studio 2008 not generating my *.designer.vb files (3 replies) |
| microsoft.public.vsnet.debugging |
| I have several *.aspx files and Visual Studio 2008 won't generate the *.designer.vb files for them. This is one of the most annoying bugs in Visual Studio 2008 that I know of, because it forces you to check manually when you recieve compile errors or IntelliSense isn't displaying something. The only workaround I know of is to manually fix the *.designer.vb file until Visual Studio 2008 decides to ... |
|
| Javascript Debugging (10 replies) |
| microsoft.public.vsnet.debugging |
| I am trying to learn how to use client javascript with my asp.net pages. I have quickly found that my javascript is failing and having failed to reach the breakpoint I placed in my javascript, I was pleased to find the following video (and code) http://www.asp.net/learn/3.5 videos/video 219.aspx . However I cannot replicate the debugging shown within the video, using the downloaded code with a bre... |
|
| Getting symbols for an alternate version of NTDLL.DLL (10 replies) |
| microsoft.public.vsnet.debugging |
| Hi all, I'm using Visual Studio 2005 to debug a process crash dump. The dump file was generated on a computer running Windows XP SP2. I'm debugging it on a computer running XP SP3. I've defined the NT SYMBOL PATH environment variable as: symsrv*symsrv.dll*E:\DebugSymbols\*http://msdl.microsoft.com/download/symbols When I load the dump file into the VS debugger and look at the loaded modules I see ... |
|
| App Verifier + VS 2005 debugger (6 replies) |
| microsoft.public.vsnet.debugging |
| I installed the Microsoft Application Verifier and hooked it up to an application, then I ran the application in the VS 2005 debugger. Sure enough, my application triggered a breakpoint at the point where it corrupted the heap. My problem is that when the dust settles and I find myself in the VS debugger, the application has stopped in an Application Verifier routine, and all of the stuff on the c... |
|
| Why is my Console Application limiting itself to half the screen? (8 replies) |
| microsoft.public.vsnet.debugging |
| I have a Console Application, and when I do a "Start Without Debugging" to test it, everything works, but it will not allow me to make the window wider than half my screen. Even if I maximize it, it takes the full height, but only half the width. This is very annoying, because sometimes lines are longer than half the screen. Why is this, and is there any way to allow me to make it take up the whol... |
|
| Master Pages and Design View in Visual Studio 2008 (3 replies) |
| microsoft.public.vsnet.debugging |
| Whenever I try to use Design or Split view in Visual Studio 2008 I recieve the following error: Master Page error The page has one or more asp:Content controls that do not correspond with asp:ContentPlaceHolder controls in the Master Page. Correct the problem in Code View: cphContentArea I am recieving this error in all of my Web Applications, even though they have extremely simple Master and Cont... |
|
| How to prevent remote debugging? (5 replies) |
| microsoft.public.vsnet.debugging |
| I don't know what I am doing wrong but if I use VS2005 I can go with F11 without getting any prompts about "Unable to automatically step into the server..." Running the same code with VS2008, I always get the damn prompts. I do not try to do remote debugging at all.... The DLL I reference is using remoting (the application server is not running on my PC). I am running Windows XP Pro x64 edition. I... |
|
| remote debugging no symbols loaded asp.net (2 replies) |
| microsoft.public.vsnet.debugging |
| I have an ASP.NET 3.5 application which is made out for one webapplication and several projects that only contain class files which are compiled to seperate .DLL's into the /bin folder of the webapplication. The webapplication was built in release mode and deployed on a server. Now I want to debug one of the class libraries that exists in a seperate project. I have rebuild the DLL in debug mode an... |
|
| JIT Debugger - "unhandled exception ('System.InvalidOperationException') occurred in aspnet_wp" (2 replies) |
| microsoft.public.vsnet.debugging |
| Using VS 2008 My solution has a C# class library project and an ASP.Net project that references the C# project. When I build just the C# project, I quickly get "Build succeeded" and then about a minute later I consistently get a dialog with Title: "Visual Studio Just In Time Debugger" Text: "An unhandled exception ('System.InvalidOperationException') occurred in aspnet wp.exe [2400]." What do I ne... |
|