3 Replies Latest reply: Sep 12, 2012 2:46 PM by 961722 RSS

    Debugger : set next statement?

    961722
      Hello,

      Does the Solaris Studio 12.3 debugger support a "Set Next Statement" function similar to Visual Studio?

      That is to say, can I resume execution at an arbitrary program location?

      See the 5th item at:
      http://www.cprogramming.com/tutorial/visual_studio_tips.html

      I tried just dragging the green "program counter" arrow, but this did not seem to work.

      Thank you
        • 1. Re: Debugger : set next statement?
          881506
          Hi,

          yes, there is "Continue At..." action for that.
          You can add it to the toolbar and have a shortcut for it.

          - Right click on any toolbar and choose customize
          - find "Continue at..." action in the Debugger section
          - drag it anywhere

          Now you can put cursor anywhere in the file editor, click this button and debugger will continue right from here.
          • 2. Re: Debugger : set next statement?
            Vladimir Voskresensky-Oracle
            to assign shortcut (doesn't matter if action was added on toolbar or not):
            Tools->Options->Keymap
            in search type "Continue", choose "Continue at..." and assign any shortcut

            Edited by: Vladimir Voskresensky on Sep 12, 2012 10:50 AM
            • 3. Re: Debugger : set next statement?
              961722
              This is great, thank you.

              Is there a similar "Step at..." command that moves to the requested line, but does not yet execute anything? (more of a literal "set next statement".)

              Seemingly this can be emulated by just setting a breakpoint at the target line prior to selecting "Continue at".