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. How to find function during debugging?

How to find function during debugging?

Scheduled Pinned Locked Moved C / C++ / MFC
visual-studiotutorialquestion
8 Posts 6 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.
  • A Offline
    A Offline
    Atul23
    wrote on last edited by
    #1

    Hi All, I am debugging the program by adding the break point at some function.Suppose I want to find out which function is called when I perform particular actions. Is there any method to identify which function is called at particular event.Because I can not predict which function gets called so I can not add break point at that function.Can we add break point at all function in project by any short cut method of IDE. Please send me solution if anybody have. Thanks in Advance Atul Atul

    J C P 3 Replies Last reply
    0
    • A Atul23

      Hi All, I am debugging the program by adding the break point at some function.Suppose I want to find out which function is called when I perform particular actions. Is there any method to identify which function is called at particular event.Because I can not predict which function gets called so I can not add break point at that function.Can we add break point at all function in project by any short cut method of IDE. Please send me solution if anybody have. Thanks in Advance Atul Atul

      J Offline
      J Offline
      jhwurmbach
      wrote on last edited by
      #2

      Set a breakpoint at the position where the function is called and then use the debugger command "step into".


      Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal.
      George Orwell, "Keep the Aspidistra Flying", Opening words

      A 1 Reply Last reply
      0
      • J jhwurmbach

        Set a breakpoint at the position where the function is called and then use the debugger command "step into".


        Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal.
        George Orwell, "Keep the Aspidistra Flying", Opening words

        A Offline
        A Offline
        Atul23
        wrote on last edited by
        #3

        Hi jhwurmbach , The main problem is the I can not predict which function is called. So where should I add break point. Thanks in Advance Atul :(( Atul

        C M J 3 Replies Last reply
        0
        • A Atul23

          Hi jhwurmbach , The main problem is the I can not predict which function is called. So where should I add break point. Thanks in Advance Atul :(( Atul

          C Offline
          C Offline
          Cedric Moonen
          wrote on last edited by
          #4

          Atulmahajan wrote:

          The main problem is the I can not predict which function is called

          :confused: Why so ?


          Cédric Moonen Software developer
          Charting control [v1.2]

          1 Reply Last reply
          0
          • A Atul23

            Hi All, I am debugging the program by adding the break point at some function.Suppose I want to find out which function is called when I perform particular actions. Is there any method to identify which function is called at particular event.Because I can not predict which function gets called so I can not add break point at that function.Can we add break point at all function in project by any short cut method of IDE. Please send me solution if anybody have. Thanks in Advance Atul Atul

            C Offline
            C Offline
            chandu004
            wrote on last edited by
            #5

            only one way. add break points at the start of all the functions and see

            1 Reply Last reply
            0
            • A Atul23

              Hi jhwurmbach , The main problem is the I can not predict which function is called. So where should I add break point. Thanks in Advance Atul :(( Atul

              M Offline
              M Offline
              Maximilien
              wrote on last edited by
              #6

              Atulmahajan wrote:

              The main problem is the I can not predict which function is called. So where should I add break point.

              Well, if you don't know your software !!! Read the code, put break points where you think they should be, if they don't trigger, put them somewhere else. You should know at least what your software do!


              Maximilien Lincourt Your Head A Splode - Strong Bad

              1 Reply Last reply
              0
              • A Atul23

                Hi jhwurmbach , The main problem is the I can not predict which function is called. So where should I add break point. Thanks in Advance Atul :(( Atul

                J Offline
                J Offline
                jhwurmbach
                wrote on last edited by
                #7

                Atulmahajan wrote:

                I can not predict which function is called

                Why not? You have the statement where the decision occurs. There you put the breakpoint.


                Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal.
                George Orwell, "Keep the Aspidistra Flying", Opening words

                1 Reply Last reply
                0
                • A Atul23

                  Hi All, I am debugging the program by adding the break point at some function.Suppose I want to find out which function is called when I perform particular actions. Is there any method to identify which function is called at particular event.Because I can not predict which function gets called so I can not add break point at that function.Can we add break point at all function in project by any short cut method of IDE. Please send me solution if anybody have. Thanks in Advance Atul Atul

                  P Offline
                  P Offline
                  Paresh Chitte
                  wrote on last edited by
                  #8

                  Is your application multithreaded ? Regards, Paresh.

                  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