Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » Debug multiple tcl files with packages
Debug multiple tcl files with packages [message #720157] Tue, 30 August 2011 02:03
GrOoVy is currently offline GrOoVyFriend
Messages: 1
Registered: August 2011
Junior Member
Hi,

I'm trying to debug my tcl package. Suppose i have 1 file containing all the tcl scripts for my package. Then in another file, i have some code to test the package. I'm able to debug the test tcl file, but unable to debug the package tcl file (ie: no breakpoints are hit). Does anybody know how to debug multiple tcl files?

Here is a really simple example of my source tcl files:
# myutils.tcl
package provide ::myapp::utils 1.0

namespace eval ::myapp::utils {
  namespace export test
}

proc ::myapp::utils::test {value} {
  return $value
}


# mytest.tcl
package require ::myapp::utils 1.0

set x [::myapp::utils::test "A"]

puts $x


#pkgIndex.tcl
if {![package vsatisfies [package provide Tcl] 8.5]} {return}

package ifneeded ::myapp::utils 1.0 [list source [file join $dir myutils.tcl]
Previous Topic:[BUILD] M-M201108170548-201108170548
Next Topic:Search for case insensitive languages
Goto Forum:
  


Current Time: Tue Oct 15 03:36:39 GMT 2024

Powered by FUDForum. Page generated in 0.03322 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top