As per the title really, where can I find some document that states how to use the -p ProcessID command line switch?
Following what Alexey has put elsewhere on here, but I consistently keep getting a crash error from the debugger.
The problem I have is, sometimes the debugger pops up a window with a list of clarion app processes to select and othertimes I dont, so I’ve getting variable behaviour, and nothing consistent.
Edit.
So this is what I get if I use the cladb.exe:File->File To Debug method → Set a Breakpoint
Corrupt block/Unknown block type freed. This is probably caused by freeing a static variable or a bad pointer.
Process PID=11672 Image: C:\MyBrowserExtensionUsingClarion\v1\claappname.exe
Thread 1 Handle=0000025C TID=4284
Stack frame: 0019FD60
Call Stack:
0110DD25
0040116D
010CD8F7
010CD3E1
776BD1AB
776BD131
D32.log
Started
Heap handle: 07760000
start process
Debug active process 00002D98
event 00000000
Redirection file :>
CREATE_PROCESS_DEBUG_EVENT ! No image name found
g.debug_name
BaseOfImage 00400000
CREATE_PROCESS_DEBUG_EVENT: process main thread tid=000010BC
thread handle=00000658
ntdll.dll Loaded at: 77650000
No debug information
CREATE_THREAD_DEBUG_EVENT: tid=00001F3C
thread handle=00000680
CREATE_THREAD_DEBUG_EVENT: tid=000006E8
thread handle=00000684
CREATE_THREAD_DEBUG_EVENT: tid=000004D4
thread handle=00000688
KERNEL32.dll Loaded at: 75E00000
No debug information
KERNELBASE.dll Loaded at: 750F0000
No debug information
SHELL32.dll Loaded at: 769C0000
No debug information
msvcp_win.dll Loaded at: 767C0000
No debug information
ucrtbase.dll Loaded at: 757D0000
No debug information
USER32.dll Loaded at: 76300000
No debug information
win32u.dll Loaded at: 76190000
No debug information
GDI32.dll Loaded at: 750C0000
No debug information
ClaRUN.dll Loaded at: 01000000
WslDb$$NotifyDebugger 010E0C9C
gdi32full.dll Loaded at: 76500000
No debug information
ADVAPI32.dll Loaded at: 758F0000
No debug information
WinTypes.dll Loaded at: 75540000
No debug information
msvcrt.dll Loaded at: 77450000
No debug information
combase.dll Loaded at: 75F00000
No debug information
SECHOST.dll Loaded at: 75A40000
No debug information
RPCRT4.dll Loaded at: 76900000
No debug information
COMDLG32.dll Loaded at: 75980000
No debug information
SHCORE.dll Loaded at: 75C40000
No debug information
COMCTL32.dll Loaded at: 6B5B0000
No debug information
SHLWAPI.dll Loaded at: 753C0000
No debug information
ole32.dll Loaded at: 75AE0000
No debug information
OLEAUT32.dll Loaded at: 75420000
No debug information
MPR.dll Loaded at: 73720000
No debug information
oledlg.dll Loaded at: 6E530000
No debug information
WINSPOOL.DRV Loaded at: 6E570000
No debug information
CFGMGR32.dll Loaded at: 73460000
No debug information
ClaTPS.dll Loaded at: 00B10000
No debug information
IMM32.dll Loaded at: 764D0000
No debug information
MSIMG32.dll Loaded at: 6E520000
No debug information
UxTheme.dll Loaded at: 729D0000
No debug information
TextShaping.dll Loaded at: 6DFA0000
No debug information
MSCTF.dll Loaded at: 77520000
No debug information
AppCore.dll Loaded at: 74880000
No debug information
bcryptPrimitives.dll Loaded at: 75D90000
No debug information
TextInputFramework.dll Loaded at: 6E730000
No debug information
CREATE_THREAD_DEBUG_EVENT: tid=00000B88
thread handle=00000720
EXIT_THREAD_DEBUG_EVENT: tid=00000B88
Command line :> "C:\Clarion11\bin\Cladb.exe" -p 11672
Command line :> "C:\MyBrowserExtensionUsingClarion\v1\ClaAppName.exe" 11672
Redirection file :>
CREATE_PROCESS_DEBUG_EVENT ! No image name found
g.debug_name C:\MyBrowserExtensionUsingClarion\v1\ClaAppName.exe
BaseOfImage 00400000
CREATE_PROCESS_DEBUG_EVENT: process main thread tid=00002DB0
thread handle=0000112C
ntdll.dll Loaded at: 77650000
No debug information
KERNEL32.dll Loaded at: 75E00000
No debug information
KERNELBASE.dll Loaded at: 750F0000
No debug information
CREATE_THREAD_DEBUG_EVENT: tid=00002190
thread handle=00000770
SHELL32.dll Loaded at: 769C0000
No debug information
CREATE_THREAD_DEBUG_EVENT: tid=000015E0
thread handle=00000D3C
msvcp_win.dll Loaded at: 767C0000
No debug information
ClaRUN.dll Loaded at: 01000000
WslDb$$NotifyDebugger 010E0C9C
ucrtbase.dll Loaded at: 757D0000
No debug information
CREATE_THREAD_DEBUG_EVENT: tid=000005E0
thread handle=00000D98
ADVAPI32.dll Loaded at: 758F0000
No debug information
ClaTPS.dll Loaded at: 00580000
No debug information
USER32.dll Loaded at: 76300000
No debug information
msvcrt.dll Loaded at: 77450000
No debug information
UNLOAD_DLL_DEBUG_EVENT: BaseOfDll 00580000
SECHOST.dll Loaded at: 75A40000
No debug information
win32u.dll Loaded at: 76190000
No debug information
GDI32.dll Loaded at: 750C0000
No debug information
RPCRT4.dll Loaded at: 76900000
No debug information
gdi32full.dll Loaded at: 76500000
No debug information
COMDLG32.dll Loaded at: 75980000
No debug information
WinTypes.dll Loaded at: 75540000
No debug information
combase.dll Loaded at: 00B00000
No debug information
combase.dll Loaded at: 75F00000
No debug information
UNLOAD_DLL_DEBUG_EVENT: BaseOfDll 00B00000
COMCTL32.dll Loaded at: 6B5B0000
No debug information
SHCORE.dll Loaded at: 75C40000
No debug information
SHLWAPI.dll Loaded at: 753C0000
No debug information
ole32.dll Loaded at: 75AE0000
No debug information
OLEAUT32.dll Loaded at: 75420000
No debug information
MPR.dll Loaded at: 73720000
No debug information
oledlg.dll Loaded at: 6E530000
No debug information
WINSPOOL.DRV Loaded at: 6E570000
No debug information
CFGMGR32.dll Loaded at: 73460000
No debug information
ClaTPS.dll Loaded at: 00580000
No debug information
IMM32.dll Loaded at: 764D0000
No debug information
MSIMG32.dll Loaded at: 6E520000
No debug information
number of processes: 00000002
list window 000E054C
fill_list window 000E054C
fill_list str_num 00000000
fill_list window 000E054C
fill_list str_num 00000001
CREATE_THREAD_DEBUG_EVENT: tid=00001EEC
thread handle=00000428
CREATE_THREAD_DEBUG_EVENT: tid=00000590
thread handle=000004D8
If I use cladb.exe:Window->Source->Select ClaAppName.clw (where wxeh.cpp is also listed)-> Set Breakpoint.
I dont get the Corrupt block/Unknown block type freed GPF message and the debugger works as expected.
D32.log
Started
Heap handle: 06D90000
start process
Debug active process 00001D70
event 00000000
Redirection file :>
CREATE_PROCESS_DEBUG_EVENT ! No image name found
g.debug_name
BaseOfImage 00400000
CREATE_PROCESS_DEBUG_EVENT: process main thread tid=00002634
thread handle=000005E4
ntdll.dll Loaded at: 77650000
No debug information
CREATE_THREAD_DEBUG_EVENT: tid=00001268
thread handle=00000600
CREATE_THREAD_DEBUG_EVENT: tid=00002EC8
thread handle=00000614
CREATE_THREAD_DEBUG_EVENT: tid=00002918
thread handle=00000618
KERNEL32.dll Loaded at: 75E00000
No debug information
KERNELBASE.dll Loaded at: 750F0000
No debug information
SHELL32.dll Loaded at: 769C0000
No debug information
msvcp_win.dll Loaded at: 767C0000
No debug information
ucrtbase.dll Loaded at: 757D0000
No debug information
ClaRUN.dll Loaded at: 01000000
WslDb$$NotifyDebugger 010E0C9C
USER32.dll Loaded at: 76300000
No debug information
ADVAPI32.dll Loaded at: 758F0000
No debug information
win32u.dll Loaded at: 76190000
No debug information
msvcrt.dll Loaded at: 77450000
No debug information
GDI32.dll Loaded at: 750C0000
No debug information
SECHOST.dll Loaded at: 75A40000
No debug information
gdi32full.dll Loaded at: 76500000
No debug information
WinTypes.dll Loaded at: 75540000
No debug information
RPCRT4.dll Loaded at: 76900000
No debug information
combase.dll Loaded at: 75F00000
No debug information
COMDLG32.dll Loaded at: 75980000
No debug information
COMCTL32.dll Loaded at: 6B5B0000
No debug information
SHCORE.dll Loaded at: 75C40000
No debug information
SHLWAPI.dll Loaded at: 753C0000
No debug information
ole32.dll Loaded at: 75AE0000
No debug information
OLEAUT32.dll Loaded at: 75420000
No debug information
MPR.dll Loaded at: 73720000
No debug information
oledlg.dll Loaded at: 6E530000
No debug information
WINSPOOL.DRV Loaded at: 6E570000
No debug information
CFGMGR32.dll Loaded at: 73460000
No debug information
ClaTPS.dll Loaded at: 00630000
No debug information
IMM32.dll Loaded at: 764D0000
No debug information
MSIMG32.dll Loaded at: 6E520000
No debug information
UxTheme.dll Loaded at: 729D0000
No debug information
TextShaping.dll Loaded at: 6DFA0000
No debug information
MSCTF.dll Loaded at: 77520000
No debug information
AppCore.dll Loaded at: 74880000
No debug information
bcryptPrimitives.dll Loaded at: 75D90000
No debug information
TextInputFramework.dll Loaded at: 6E730000
No debug information
CREATE_THREAD_DEBUG_EVENT: tid=00000944
thread handle=00000720
EXIT_THREAD_DEBUG_EVENT: tid=00000944
CREATE_THREAD_DEBUG_EVENT: tid=000022F8
thread handle=00000590
CREATE_THREAD_DEBUG_EVENT: tid=00000350
thread handle=0000071C
EXIT_THREAD_DEBUG_EVENT: tid=00002918
EXIT_THREAD_DEBUG_EVENT: tid=00002EC8
EXIT_THREAD_DEBUG_EVENT: tid=00001268
CoreMessaging.dll Loaded at: 6A9E0000
No debug information
CREATE_THREAD_DEBUG_EVENT: tid=00000950
thread handle=00000C50
CoreUIComponents.dll Loaded at: 6A740000
No debug information
CRYPTBASE.dll Loaded at: 705A0000
No debug information
CREATE_THREAD_DEBUG_EVENT: tid=00001D48
thread handle=00000D40
CREATE_THREAD_DEBUG_EVENT: tid=00002AD4
thread handle=00000748
There is a copy of CLARION110.RED in the C:\MyBrowserExtensionUsingClarion\v1\ folder.
So does anyone know what the correct way is to step into a process and debug it?
TIA
