Debugging Applications for Microsoft .NET and Microsoft by John Robbins

By John Robbins

Because the identify says, it covers either debugging functions for home windows and .NET. that's alot of floor to hide and the publication nonetheless manages to get all of it in and maintain it attention-grabbing for what can be a very dry read.There are a few themes neglected. for instance: no longer coated are debugging for CE or home windows cellular, debugging utilizing digital machines (VMWare extensions for visible Studio, etc.) or the shared assets on hand for ASP.NET or home windows CE. those are minor concerns in an exceptional publication at the subject.A should have for each expert home windows developer.

Show description

Read Online or Download Debugging Applications for Microsoft .NET and Microsoft Windows PDF

Best languages & tools books

Delphi XE2 Foundations - Part 3

Half three of a finished consultant to the language and middle non-visual libraries of Embarcadero Delphi XE2; during this half, programs, RTTI, interoperability and multithreading performance are all lined. Adopting an built-in method, the ebook covers either more moderen and older gains along each other.

Beginning CareKit Development: Develop CareKit Applications Using Swift

This ebook bargains readers a beautiful creation into developing CareKit established functions utilizing the speedy language. It starts off with the fundamentals and gives a step by step advisor to studying all points of making a CareKit iOS software which may function the root for a sufferer care plan. starting Carekit improvement introduces the most important modules and ideas of CareKit starting up through fitting and construction the open resource framework.

Additional info for Debugging Applications for Microsoft .NET and Microsoft Windows

Example text

For more information on IsDebuggerPresent, see Chapter 4. CPPBPExamples Chapter Examples\Chapter 5\CPPBPExamples is a C++ sample that you can use to experiment setting breakpoints discussed in Chapter 5. Setting a breakpoint on an existing class method 1. Press CTRL+B to open the Breakpoint dialog box. 2. On the Function tab, Function box, type MyThreaClass::ThreadFunc and click OK. 3. Note that a breakpoint is set just inside the ThreadFunc method. Setting breakpoints on any class method 1. Press CTRL+B to open the Breakpoint dialog box.

Run the sample. 5. When the sample breaks, open the Threads window to see that the thread name is "Bob". Setting a per-thread breakpoint when the thread doesn t have a name 1. NET. 2. Name = "Joe" ;. 3. Start ( ) ;. 4. Run the sample. 5. Start ( ) ;, open the Watch window. 6. Name in the Name column. 7. Enter "Sue" in the Value column. 8. WriteLine ( "ThreadMethod func : {0}" , i ) ;. NET and Microsoft Windows Code Samples 63 9. Name. 10. Continue running the sample. 11. Note in the Threads window that the sample only breaks on the thread named "Sue".

Right-click on the red area of the line for the location breakpoint and select Breakpoint Properties. 3. Click the Condition button. 4. Add i > 5 to the condition box. 5. Run sample and note that sample breaks when i is greater than 5. Setting multiple breakpoints on a single line 1. WriteLine ( "i = {0} m = {0}" , i , m ) ;. 2. Add the following conditional expression: i==3. NET and Microsoft Windows Code Samples 3. Open the Breakpoints window to see the line number the breakpoint. 4. Press CTRL+B to open the Breakpoint dialog box.

Download PDF sample

Rated 4.16 of 5 – based on 13 votes