DEBUG command
Posted: Sun Aug 07, 2005 12:40 pm
I work with PureBasic v3.94 Beta 4. In help file is writtten: "DEBUG: Display the DebugOutput window and the result inside it"
I am just experimenting with the following code:
window_nr = OpenWindow(#PB_Any,100,100,150,150,#PB_Window_SystemMenu|#PB_Window_SizeGadget,"Test")
window_id = WindowID(window_nr)
CreateGadgetList(window_id)
ButtonGadget(1,10,50,90,20,"Button 1")
ButtonGadget(2,10,70,90,20,"Button 2")
;
Repeat
event = WaitWindowEvent()
Select event
Case #PB_EventGadget
Select EventGadgetID()
Case 1
Debug "gadget 1"
Case 2
Debug "gadget 2"
EndSelect
EndSelect
Until event = #PB_Event_CloseWindow
I can not see DebugOutput window when I use Compile/Run from Compile menu. Could you explain me why ? May be Debug works another way ?
I am just experimenting with the following code:
window_nr = OpenWindow(#PB_Any,100,100,150,150,#PB_Window_SystemMenu|#PB_Window_SizeGadget,"Test")
window_id = WindowID(window_nr)
CreateGadgetList(window_id)
ButtonGadget(1,10,50,90,20,"Button 1")
ButtonGadget(2,10,70,90,20,"Button 2")
;
Repeat
event = WaitWindowEvent()
Select event
Case #PB_EventGadget
Select EventGadgetID()
Case 1
Debug "gadget 1"
Case 2
Debug "gadget 2"
EndSelect
EndSelect
Until event = #PB_Event_CloseWindow
I can not see DebugOutput window when I use Compile/Run from Compile menu. Could you explain me why ? May be Debug works another way ?