Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Breakpoint problem----howto use it in a loop

Breakpoint problem----howto use it in a loop

Scheduled Pinned Locked Moved C / C++ / MFC
questiondebugginghelp
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Charles Liu
    wrote on last edited by
    #1

    I got some code contains a loop which execuates for about 20000 times.How can I step into the 10000th execuation?:confused:

    J N 2 Replies Last reply
    0
    • C Charles Liu

      I got some code contains a loop which execuates for about 20000 times.How can I step into the 10000th execuation?:confused:

      J Offline
      J Offline
      James R Twine
      wrote on last edited by
      #2

      > How can I step into the 10000th execuation?    Conditional Breakpoints.    Open the Breakpoints dialog (Edit-Breakpoints or Alt+F9 in DevStudio 6.0), specify the location (or select a previously marked Breakpoint, which is easier), and then click on Condition... to specify a condition for the Breakpoint.    Peace! -=- James.

      T 1 Reply Last reply
      0
      • C Charles Liu

        I got some code contains a loop which execuates for about 20000 times.How can I step into the 10000th execuation?:confused:

        N Offline
        N Offline
        Nemanja Trifunovic
        wrote on last edited by
        #3

        if (i == 10000)
        __asm int 3;

        It is faster than conditional breakpoints. I vote pro drink :beer:

        1 Reply Last reply
        0
        • J James R Twine

          > How can I step into the 10000th execuation?    Conditional Breakpoints.    Open the Breakpoints dialog (Edit-Breakpoints or Alt+F9 in DevStudio 6.0), specify the location (or select a previously marked Breakpoint, which is easier), and then click on Condition... to specify a condition for the Breakpoint.    Peace! -=- James.

          T Offline
          T Offline
          Todd Smith
          wrote on last edited by
          #4

          Your condition should be something like i == 10000

          Todd Smith

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups