Skip to main content
Visitor II
April 27, 2012
Question

stvd: one or more breakpoints are not positioned on valid lines

  • April 27, 2012
  • 5 replies
  • 1769 views
Posted on April 27, 2012 at 15:50

Hi

Here is the bug I found in STVD:

While trying to debug a program I set a breakpoint on a line, load the debugger and bam error:

one or more breakpoints are not positioned on valid lines.

I know this is a valid line, this same breakpoint worked yesterday and before that... I tryed to delete the project files, nothing works

any idea to fix ST software?
    This topic has been closed for replies.

    5 replies

    remi23Author
    Visitor II
    April 27, 2012
    Posted on April 27, 2012 at 15:58

    OK I just fixed it using my version control software (Toirtoise CVS)

    Reverting all the project file that corrupt themself FOR NO GOOD REASONS

    STVD needs really a fix for that. It is not a new error, this error has been around for years!!!

    Visitor II
    April 27, 2012
    Posted on April 27, 2012 at 16:06

    I have used STVD for many years and never seen the corruption you mention.

    The invalid breakpoint error usually occurs when you set the compiler to a non-debug compatible mode.  Then the source code line is there but the compiler has optimised away the instructions, which is why the breakpoint can't be set 

    Visitor II
    April 25, 2013
    Posted on April 25, 2013 at 11:36

    I have optimisations turned completely OFF and I get the error also. It never used to happen but now happens all the time. I am going to try creating a new project and importing my source code files.

    Visitor II
    November 13, 2013
    Posted on November 13, 2013 at 10:06

     Maybe resulted from the File directory changed!

      �?�能你修改了工程路径�?

    Visitor II
    July 8, 2014
    Posted on July 08, 2014 at 02:38

    Hello,

    Have you checked if the directory of the files you're trying to set a breakpoint was informed in the field ''Source directories'' on the Debug tab of your project settings?