Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

How to break in NIOS?

Altera_Forum
Honored Contributor II
1,192 Views

If I let the debugger run, and then I want to break the program, whereever it is, how do I do that? I would expect to have a 'pause' or 'break now' button, but I cannot seem to find that. 

 

I am runnning NIOS II.
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
456 Views

The debugger does in fact have a "pause" (break) icon as well as "play" (run) and "stop" (stop debugging). Look for it in a tool-bar just below the various menus (file, edit, etc.). You need to be in the "debug perspective" of the IDE (which should automaticaly happen for you if you have started the debugger). 

 

If you right-click on the left-hand margin of your source-code (where the line numbers show up, if you have those enabled) you can enable/disable a breakpoint at a specific line of code.
0 Kudos
Altera_Forum
Honored Contributor II
456 Views

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

The debugger does in fact have a "pause" (break) icon as well as "play" (run) and "stop" (stop debugging). Look for it in a tool-bar just below the various menus (file, edit, etc.). You need to be in the "debug perspective" of the IDE (which should automaticaly happen for you if you have started the debugger).[/b] 

--- Quote End ---  

 

 

 

I see the &#39;pause&#39; is there, right next to the &#39;Terminate&#39; icon. The problem is that they are both grayed (disabled) while the app is running. Even though I am in debug.... 

 

Am I missing something?
0 Kudos
Altera_Forum
Honored Contributor II
456 Views

start your program with Run->debug... 

you first must select the running thread (with green arrow) in the debug window, 

before you can stop it( buttons get grayed off)
0 Kudos
Reply