473,388 Members | 1,256 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Inserting breakpoints ...

hello,

for the simulation of some micro language (JAL),
the original language is (with a minimal effort) translated into Python,
after which the code is run in Python.

I want to add a call to a debug routine,
called JSM(linenr), which performs task like wait, update user feedback, etc.

Now I can't find a nice solution,
to add the debug call in a if/for/while statement.
The orginal language looks like this
<Orginal Language>
For 16 * hardware_column loop
Write_lcd_2bytes ( write_text , 0 )
</Orginal Language>
This attempt doesn't work, because apparently I've to choose between
- 1 statement behind the ":"
- all statements in the line below
<Python attempt 1>
for xxx in xrange ( 16 * hardware_column ): JSM(78)
Write_LCD_2Bytes ( write_text , 0 ) ;JSM(79)
</Python attempt 1>
This works, but doesn't give a nice output
<Python attempt 2>
for xxx in xrange ( 16 * hardware_column ):
JSM(78)
Write_LCD_2Bytes ( write_text , 0 ) ;JSM(79)
</Python attempt 2>
any other ideas ?

thanks,
Stef Mientki
Jun 16 '07 #1
2 1376
En Sat, 16 Jun 2007 10:22:34 -0300, Stef Mientki
<S.**************@mailbox.kun.nlescribió:
for the simulation of some micro language (JAL),
the original language is (with a minimal effort) translated into Python,
after which the code is run in Python.

I want to add a call to a debug routine,
called JSM(linenr), which performs task like wait, update user feedback,
etc.
This works, but doesn't give a nice output
<Python attempt 2>
for xxx in xrange ( 16 * hardware_column ):
JSM(78)
Write_LCD_2Bytes ( write_text , 0 ) ;JSM(79)
</Python attempt 2>
Try sys.settrace()

--
Gabriel Genellina

Jun 17 '07 #2
Gabriel Genellina wrote:
En Sat, 16 Jun 2007 10:22:34 -0300, Stef Mientki
<S.**************@mailbox.kun.nlescribió:
>for the simulation of some micro language (JAL),
the original language is (with a minimal effort) translated into Python,
after which the code is run in Python.

I want to add a call to a debug routine,
called JSM(linenr), which performs task like wait, update user
feedback, etc.
This works, but doesn't give a nice output
<Python attempt 2>
for xxx in xrange ( 16 * hardware_column ):
JSM(78)
Write_LCD_2Bytes ( write_text , 0 ) ;JSM(79)
</Python attempt 2>

Try sys.settrace()
thanks Gabriel,

that might be a good way to go,
I'll study that in the near feature,
(can't find the easy to read details right now :-(

cheers,
Stef Mientki
Jun 17 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: fred | last post by:
What has happened to my breakpoints? Whenever I start my application from the IDE in Visual Studio then all of the breakpoints show a "?" and a comment says "The breakpoint will not currently be...
2
by: Jozef | last post by:
Hello, I'm coding a windows form, and up until now, the breakpoints have worked fine. For some reason, now when I run the program, the breakpoints fail and the code continues running. I have...
9
by: Rea | last post by:
Hi eb I set some 'Stop' statements and also visual breakpoints in asp code (vbscript). I am doing that in Microsoft Script debugger. Than I refresh the original page and expect execution to halt...
2
by: MSK | last post by:
Hi, Continued to my earlier post regaring "Breakpoints are not getting hit" , I have comeup with more input this time.. Kindly give me some idea. I am a newbie to .NET, recently I installed...
1
by: jeem | last post by:
I am using ActiveState Komodo 3.5 to work on a large python 2.4 application with an extensive UI... I am attempting to debug the application and am setting breakpoints in 4 different *.py files.....
5
by: venner | last post by:
I'm having an issue with an ASP.NET website after upgrading to ASP.NET 2.0. The website makes use of a central authentication service (CAS) provided at the university I work for. Each page checks...
5
by: Jerry Spence1 | last post by:
In VB6 you could set a breakpoint when a variable had changed value. I can't find this in VB2005. Is it there somewhere? -Jerry
1
by: theresegt1 | last post by:
Does anyone know why VS 2005 might skip breakpoints when debugging through the browser? It's a new installation so no configurations other than 'set startup project' and 'set startup page' have...
1
by: Jeff | last post by:
Hey How can I get a list of breakpoints in Visual Studio 2005, while the loaded solution is in Edit mode (not running or not debugging)... I'm trying to learn thousands of uncommented C# code...
2
by: =?Utf-8?B?TG9zdCBJbiBUaGUgV29vZHM=?= | last post by:
I've seen a ton of posts about similar problems, but none of the solutions were effective. I've been maintaining this VB code for 3 years, and this is the first time this has happened. It seems...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.