Unable to set any valid breakpoints for debugging

Comments

22 comments

  • Avatar
    Michael Johnson

    Have you selected a "Debug" configuration for the build?

    -1
    Comment actions Permalink
  • Avatar
    Allen Lau
    • Yes, I can't send screenshots in this. Can I contact you by email?

    0
    Comment actions Permalink
  • Avatar
    Michael Johnson

    Can you check that the "Debugging Level" property is set?

     

    0
    Comment actions Permalink
  • Avatar
    Allen Lau

    I checked, "Debugging Level" does not work at either None or Level1.

    I have two projects, the configuration information of "Properities" is exactly the same, one project can be properly debugging, the other is the problem I described above.

    0
    Comment actions Permalink
  • Avatar
    Michael Johnson

    It shouldn't work at None - try selecting Level 3. You should see -g3 in the compile command line - use "Export Build" to see the command line.

    0
    Comment actions Permalink
  • Avatar
    Allen Lau

    Now we're making progress. The.s file can breakpoints ,Everything works fine except main.c,But the flash program I wrote in main.c is working fine.

    0
    Comment actions Permalink
  • Avatar
    Michael Johnson

    Is main.c compiled with a -g option?

    0
    Comment actions Permalink
  • Avatar
    Allen Lau

    "Error Starting process-g3" is displayed after main.c is configured.

    0
    Comment actions Permalink
  • Avatar
    Michael Johnson

    I didn't ask you to change anything just report what the "export build" reports. What did you change?

    0
    Comment actions Permalink
  • Avatar
    Allen Lau

    The same is true for configuration -g "Error Starting process-g"

    0
    Comment actions Permalink
  • Avatar
    Allen Lau

    I added "-g3" to "External Build" -> "C Compile Command". After compiling, the debugging was still the same, and I changed it back again. At this time, I found that all the breakpoints except "main. C" can be brokenpoingts.  I don't know how to export the contents of the "export build" report.

    0
    Comment actions Permalink
  • Avatar
    Michael Johnson

    Please remove that.

    Right click on the project and select "Export Build"

    0
    Comment actions Permalink
  • Avatar
    Allen Lau
    • How should I send it to you? It's over 2M, and I can't send it

    0
    Comment actions Permalink
  • Avatar
    Michael Johnson

    I don't want  you to send anything - look at it - does the main.c have a -g3 command option.

    0
    Comment actions Permalink
  • Avatar
    Allen Lau

    I'm sorry, I don't know how to use it. How should I read main.c have a-g3 command option

    -1
    Comment actions Permalink
  • Avatar
    Michael Johnson

    In the file that "Export Build" generates use the text editor to search for main.c and see if the compile command has a -g3 option.

    0
    Comment actions Permalink
  • Avatar
    Michael Johnson

    Indeed the -g0 option has turned off debugging.

    The project file will have a Debugging Level set to None.

    I use the "Project Explorer" | "Properties In Folder" to see what properties are set. I suggest you do similar.

    0
    Comment actions Permalink
  • Avatar
    Allen Lau

    Sorry, you said "the Project Explorer" | "Properties In the Folder" I didn't find it.

    How do I know how to use this.

    0
    Comment actions Permalink
  • Avatar
    Michael Johnson

    On the drop down in the Project Explorer window.

    0
    Comment actions Permalink
  • Avatar
    Allen Lau

    Hi, Michael 

    I checked all the Settings, main.c still can't breakpoint , other C files can,Istill can't find the problem.

    I still need you to help me with the setup.

    0
    Comment actions Permalink
  • Avatar
    Allen Lau

    Add another one

    0
    Comment actions Permalink
  • Avatar
    Allen Lau

    This problem solved, forget to tell the reason here, hope to see the people to help you.

    if  any breakpoints cannot be interrupted, set Debugging Level to Level3.

    Later, except for main.c can not, other can, right click main.c alone set to Level3.

    0
    Comment actions Permalink

Please sign in to leave a comment.