Skip to content

Commit 5eb9f6f

Browse files
author
Matthias Kastner
committed
debugPrint: Some more info for debugging
more verbose output for debugging purpose
1 parent afe2b25 commit 5eb9f6f

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

procedures/CodeBrowser.ipf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,7 @@ static Function saveResults(procedure)
659659

660660
// if function list could not be acquired don't save the checksum
661661
if(!numpnts(declWave) || !cmpstr(declWave[0][1], "Procedures Not Compiled() -> "))
662+
DebugPrint("Function list is not complete")
662663
SaveStringsWave[procedure.row][1] = "no checksum"
663664
endif
664665
End

procedures/CodeBrowser_gui.ipf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ Function markAsUnInitialized()
187187
endif
188188

189189
SetWindow $panel, userdata($oneTimeInitUserData)=""
190+
debugPrint("panel marked as uninitialized")
190191
End
191192

192193
Function markAsInitialized()
@@ -196,6 +197,7 @@ Function markAsInitialized()
196197
endif
197198

198199
SetWindow $panel, userdata($oneTimeInitUserData)="1"
200+
debugPrint("panel marked as initialized")
199201
End
200202

201203
Function isInitialized()

procedures/CodeBrowser_hooks.ipf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ static Function IgorBeforeQuitHook(unsavedExp, unsavedNotebooks, unsavedProcedur
1111

1212
string expName
1313

14+
debugprint("called")
15+
1416
preparePanelClose()
1517
markAsUnInitialized()
1618

@@ -48,12 +50,12 @@ Function initializePanel()
4850

4951
Execute/Z/Q "SetIgorOption IndependentModuleDev=1"
5052
if(!(V_flag == 0))
51-
debugPrint("Error: SetIgorOption returned " + num2str(V_flag))
53+
debugPrint("Error: SetIgorOption IndependentModuleDev returned " + num2str(V_flag))
5254
endif
5355

5456
Execute/Z/Q "SetIgorOption recreateListboxHScroll=1"
5557
if(!(V_flag == 0))
56-
debugPrint("Error: SetIgorOption returned " + num2str(V_flag))
58+
debugPrint("Error: SetIgorOption recreateListboxHScroll returned " + num2str(V_flag))
5759
endif
5860

5961
SetIgorHook AfterCompiledHook=updatePanel

0 commit comments

Comments
 (0)