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]