Results 1 to 2 of 2

Thread: [2.0] VS Debugger, go to address, and don't pass exception to debugger?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    [2.0] VS Debugger, go to address, and don't pass exception to debugger?

    Finally got VS Debugger to work and I am liking it so far but 2 problems.

    1.) How do you go to an address? In the disassembly window, I have tried tons of combinations but nothing works. It always gives an invalid expression error.

    2.) How do you disable passing an exception to the debugger? It is a nice feature but I am not looking for it right now.

    An example of what I mean(psuedo code).

    Code:
    int b()
    {
    return 1/0; //The debugger breaks here
    }
    void a()
    {
    try
    {
    b();
    }
    catch
    {
    //I want it to break here instead on an exception in "b"
    }
    }

    Didn't know which section to post this in, sorry.

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: [2.0] VS Debugger, go to address, and don't pass exception to debugger?

    Hey,

    I am not sure what you are getting at, but I thinking this article might point you in the right direction:

    http://msdn.microsoft.com/en-us/libr...bt(vs.71).aspx

    As for your second question, the debug can only step to lines of code where there is code. If you have an empty catch statement then the debugger will step over it.

    If you are trying to find out what the exception is then you would have to do something like:

    Code:
    catch(Exception ex)
    {
        MessageBox.Show(ex);
    }
    And the debugger will stop on this line.

    Hope that helps!!

    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width