cw2k
Topic Author
Posts: 12

Bug: 'Debug' doesn't work quit well on 64-bit Systems

Wed Oct 05, 2016 3:48 am

I'm running PH2 64 on some win7 64-bit and a little unhappy how ph2 handles 'attaching' a debugger to some process.

How to do this? Right click on some process and select 'Debug' from the popup-menu.

The thing is that ph2 only uses the 64-bit setting for call the debugger.
Of course if the debugging targets is also a 64-bit process that's perfect,
however if the targets process is 32-bit, running a 64-bit debugger is kinda useless / wrong and will always fail.
A 64-bit debugger can't attach to a 32-bit Process.
(I'm using x64dbgthat has 2 debuggers, one for 32-bit and one for 64-bit. Both attach handler setting are made correctly)

->So can ya make Ph2 64-bit get the 32-bit and 64-bit debugger attach string from the registry and:
if the Process is 32-bit -> Call the 32-bit debugger and
if the Process is 64-bit -> Call the 64-bit debugger.

TIA
 
User avatar
dmex
Posts: 1167
Location: Australia

Re: Bug: 'Debug' doesn't work quit well on 64-bit Systems

Mon Dec 05, 2016 6:31 am

The thing is that ph2 only uses the 64-bit setting for call the debugger.
Of course if the debugging targets is also a 64-bit process that's perfect,
however if the targets process is 32-bit, running a 64-bit debugger is kinda useless / wrong and will always fail.
A 64-bit debugger can't attach to a 32-bit Process.
The problem is when Visual Studio or Windbg is installed they use the 64bit debugger path for 32bit making it impossible to use the system default configuration...

We need to detect what debuggers are installed and use hard-coded paths to fix this properly.

Who is online

Users browsing this forum: Google, Yahoo and 3 guests