Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 12:54 20 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Control-C types last line (number) executed?

Author Message
k2backhoe
Regular Member

Joined: 04/12/2021
Location: United States
Posts: 47
Posted: 07:46pm 08 Feb 2022
Copy link to clipboard 
Print this post

Perhaps there is a way to cause this in MMBasic and I just haven't found it.  If not, it would be very useful in some future version if Matherp or others have time.  When my program sits doing nothing and I hit ^C to regain control, it would be great for the interpreter to type either the line number, or the actual instruction last executed.  Perhaps it could be read only variable like MM.LASTLINE?  Many thanks in advance for any helpful advice or attention to this feature.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8298
Posted: 08:10pm 08 Feb 2022
Copy link to clipboard 
Print this post

Have you checked out the TRACE command?
TRACE LIST nn
lists the last nn line numbers executed. It shows the editor line numbers counting from the beginning of the program. The editor shows the current line number that the cursor is on, so it's easy to find the last line(s).
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
k2backhoe
Regular Member

Joined: 04/12/2021
Location: United States
Posts: 47
Posted: 02:36am 09 Feb 2022
Copy link to clipboard 
Print this post

Mixtel, thanks, that's exactly what I need.  Another case of RTFM.  I have grazed the 174 page manual, but I can see I need to go through it more carefully.  My apologies for wasting folks time.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8298
Posted: 07:13am 09 Feb 2022
Copy link to clipboard 
Print this post

No problem. :)
There's a fair bit of manual for a small computer. lol
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025