hello,
doing a simulation of another language (JAL),
I translate the other language into Python code,
then I execute this converted Python code.
Now I need todo some checks and give visual feedback to the user,
each time a line of code is executed.
One way of realizing this, is to add a function call at each source code
line under investigation.
Are there any other (simple) ways of achieving this ?
(btw the whole program is running as an graphical (wxPython) application)
thanks,
Stef Mientki 2 1413
stef wrote:
hello,
doing a simulation of another language (JAL),
I translate the other language into Python code,
then I execute this converted Python code.
Now I need todo some checks and give visual feedback to the user,
each time a line of code is executed.
One way of realizing this, is to add a function call at each source code
line under investigation.
Are there any other (simple) ways of achieving this ?
(btw the whole program is running as an graphical (wxPython) application)
use the python trace facilities. http://docs.python.org/lib/module-trace.html
Diez
Diez B. Roggisch wrote:
stef wrote:
>hello,
doing a simulation of another language (JAL), I translate the other language into Python code, then I execute this converted Python code.
Now I need todo some checks and give visual feedback to the user, each time a line of code is executed.
One way of realizing this, is to add a function call at each source code line under investigation.
Are there any other (simple) ways of achieving this ? (btw the whole program is running as an graphical (wxPython) application)
use the python trace facilities.
http://docs.python.org/lib/module-trace.html
thanks Diez,
that looks exactly what I need.
cheers,
Stef
Diez This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Penn Markham |
last post by:
Hello all,
I am writing a script where I need to use the system() function to call
htpasswd. I can do this just fine on the command line...works great
(see attached file, test.php). When my...
|
by: Me |
last post by:
hi, I have this file I need to execute from an ASP client. since we
have installed it on the SQL Database server machine, I thought I
could run it
like this:
Set Cn =...
|
by: Alfonso Morra |
last post by:
How can this work ?
I have the following declarations in a header:
Header
=========
typedef void (*VFPTR)(void) ;
void FOO_Callback(void*, char*, char*, int, unsigned long, void*,void*);...
|
by: veereshai |
last post by:
i want to copy the functions from my source file into a new file...and
convert each function into a new object file by compiling it. now, i
want to invoke the function using the object file i have...
|
by: m.epper |
last post by:
Hi to everybody.
First of all sorry for my english, I'm italian.
How can I execute a portion of code, in a function, into the global
scope?
Example:
<?php
|
by: Robbie Hatley |
last post by:
I'm maintaining a software project with 134 C++ files, some of
them huge (as much as 10,000 lines each), and very few prototypes.
The author's attitude towards prototypes was like this:
...
|
by: tmp123 |
last post by:
Hello,
Thanks for your time.
We have very big files with python commands (more or less, 500000
commands each file).
It is possible to execute them command by command, like if the
commands...
|
by: Roger |
last post by:
This is the vba code
Set db = CurrentDb
On error goto fErr
…. loop
strSql = "UPDATE tblInvAnalysisWhse" & _
" SET ltDeviation = " & Sqr(dblError /
intPeriods) & _
" WHERE item = '" &...
|
by: sayeo87 |
last post by:
Hi, I am quite new to JSP so please forgive me if I ask really simple things... I am trying to run system commands on the server and display the output on a webpage. This is what I've got:
<%@...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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
|
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...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |