SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Jun 2002
    Posts
    12
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to jump over functions in debug mode


    Suppose I have a testcase that is like this.

    testcase T ()
    fn_call1 ()
    fn_call2 ()
    fn_call3 ()
    ....

    Assume that after stepping through fn_call1() I need to directly jump into fn_call3()
    without stepping into or executing (using f8) fn_call2(). How do I do this ?

    I do not want to waste my time using f7 or f8
    to step into and/or execute anything in the
    intermediate function.

    Can I do this

    ------------------

  2. #2
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to jump over functions in debug mode


    Suppose I have a testcase that is like this.

    testcase T ()
    fn_call1 ()
    fn_call2 ()
    fn_call3 ()
    ....

    Assume that after stepping through fn_call1() I need to directly jump into fn_call3()
    without stepping into or executing (using f8) fn_call2(). How do I do this ?
    [/B][/QUOTE]
    You can't; it isn't possible without first commenting out fn_call2 to remove it from the compilers view.

    HOWEVER you can directly call fn_call3 prior to stepping into fn_call2 by running it from the View expressions in the debug menu. This will work only IF fn_call3 returns some value.


    John


    ------------------

  3. #3
    KS
    KS is offline
    Senior Member
    Join Date
    May 2001
    Posts
    265
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to jump over functions in debug mode

    I don't think there is a way to skip a function in between, but if its okay to execute func2 but you don't want to keep hitting f7 & f8 all along, just mark a breakpoint at func3 and let run to cursor(take a coffee break) the debug should stop at that point.

    ------------------

 

 

Posting Permissions

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

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 08:56 PM.

Copyright BetaSoft Inc.