473,769 Members | 2,103 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using Komodo 3.5 - Setting breakpoints in multiple *.py files

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..
Breakpoints in the main file are working OK, but any breakpoints in
imported files are not... The three imported files are open in Komodo
and are in the same local directory as the main file (in the
python24/Lib/site-packages tree)... The code sections I am trying to
debug are invoked by some UI events... When I start the debugging
section and navigate to the features I am trying to debug, the
breakpoint are ignored... I can execute a "Break now" command and the
IDE is smart enough to find and display imported *.py resources... but
normal breakpoints are ignored...

I am new to Komodo and Python, and the IDE debugging features are
certainly not working as expected, based upon my experience with Visual
Studio and JBuilder... I've searched the included Help system and so
far haven't had any luck...

Thanks!

Jun 6 '06 #1
1 2116
jeem wrote:
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..
Breakpoints in the main file are working OK, but any breakpoints in
imported files are not... The three imported files are open in Komodo
and are in the same local directory as the main file (in the
python24/Lib/site-packages tree)... The code sections I am trying to
debug are invoked by some UI events... When I start the debugging
section and navigate to the features I am trying to debug, the
breakpoint are ignored... I can execute a "Break now" command and the
IDE is smart enough to find and display imported *.py resources... but
normal breakpoints are ignored...


It works for me in a trivial example:

C:\trentm\tmp\f oo>cat foo.py

print "hi from foo"
import bar
bar.bar()
print "bye from foo"

C:\trentm\tmp\f oo>cat bar.py

def bar():
print "hi from bar.bar()"
print "bye from bar.bar()"

I set breakpoints on the "import bar" line in foo.py and on the 'print
"hi...' line in "bar.py". Started debugging "foo.py" and the debugger
breaks on both breakpoints.

If you step into the "import" statements in your debug session, are the
imported modules the ones you expect? I.e. in my example the breakpoint
would not have worked if "bar.py" had been imported from another
location on my sys.path.
Note: this might be better discussed on the komodo-discuss mailing list.
(http://listserv.activestate.com/mailman/mysubs)

Cheers,
Trent

--
Trent Mick
tr****@activest ate.com
Jun 19 '06 #2

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

Similar topics

2
1574
by: Mortimer Schnurd | last post by:
Hi folks, I am just learning C# and need some help with setting debugger breakpoints. In VB 6, I could easily set breakpoints on variables which either change in value or evaluate to a specific value. It appears C# does not allow you to do this (at least not easily). This functionality was extremely useful in many instances of VB 6 debugging. Is there some way in which I can emulate this same functionality in C#? I've tried various...
2
2742
by: fortepianissimo | last post by:
This is a question to all of you who use Komodo IDE for development: when I tried to debug my script which uses __file__ to get the absolute path to the file, Komodo complained that the variable is not defined. Anyway to work around this? (without changing the code) Or if I need to change the code, how do I achieve the same thing I wanted? Thanks in advance!
6
1532
by: Matt Trivisonno | last post by:
Hi Everybody, If I were to use Komodo to write in Python, would it add a lot of goo to my code such that I would not be able to switch to another IDE without having to claw my way out of a tarpit first? Any other thoughts on Komodo? I am considering it because I am hoping to find a solution to the install-packages-until-you-go-blind aspect of Python. Setting up a serious, cross-platform, gui development environment is quite a struggle...
4
1886
by: fyleow | last post by:
I create a new Python file with the following using Wing IDE. import feedparser d = feedparser.parse("http://feedparser.org/docs/examples/atom10.xml") print d.feed.title I get this error when I debug. AssertionError:
5
1549
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
29
4991
by: John Salerno | last post by:
Just curious what users of the two big commercial IDEs think of them compared to one another (if you've used both). Wing IDE looks a lot nicer and fuller featured in the screenshots, but a glance at the feature list shows that the "personal" version doesn't even support code folding! That's a little ridiculous and makes me have doubts about it. Komodo, on the other hand, seems to have more of the features that the personal version of...
3
1714
by: Randy Magruder | last post by:
Attn: Asp.net gurus...if anyone can help, I hope it's here. Okay, I'm at my wits end. I have googled til my fingers hurt and am still not finding answers. The symptoms are as follows: 1. I have 2 machines, my laptop and a desktop, both are set up for asp.net development. 2. The desktop machine has an asp.net 1.1 app written with vs.net
8
2257
by: Steve Thompson | last post by:
Hello all, I was wondering the differnced there were betwee Active State's python and the open source version of python. Would I have to unistall my opend souce python? Additonally, how does Active State's Komodo IDE vs. the eric3 IDE unler SuSE Linux v. 10.i? Addionally, is the eric IDE (version 3) an acceptible IDE or are there more easy and more productive IDE's for perl?
1
2407
by: Scubadude | last post by:
I am looking for some assistance in 'fine-tuning' my preferences as I set-up my system to learn PHP. I am running Komodo professional, version 3.5.3, build 262321, platform win32-x86. Under Preferences/Language/PHP in debugger configuration, I am getting the following error message: WARNING! PHP is not configured for debugging. You can use the configuration wizard to configure PHP for debugging.
0
9579
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9416
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10199
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10035
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9981
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7396
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5293
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2810
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.