Page 1 of 1

Two debuggers at same time

Posted: Thu Mar 15, 2018 1:49 pm
by Julcar
Hi all, we are working with our reactos server on a remote vps, all is running up with real traffic simulations... but sometimes the system hangs.

I set the debugger at log file, after silentcing some dprints the debug log shows only few messages, and for better management it is available via http and ftp so we can check it even from smartphones.

But as you know, the FSE can't be logged with the log file, and as our vps provider deactivated the serial output, the only way to pass the FSE is reboot the system, but without knowing what caused the hang... the perfect alternative for this is setting the debugger to Screen output, but in that case the remote check cannot be performed :|

In https://reactos.org/wiki/Debugging says that is possible to "debug the debugger"

Code: Select all

[ReactOS_Debug2]
BootType=Windows2003
SystemPath=multi(0)disk(0)rdisk(0)partition(1)\ReactOS
Options=/DEBUG /DEBUGPORT=SCREEN /DEBUGPORT=COM1 /SOS
could be also

Code: Select all

[ReactOS_Debug2]
BootType=Windows2003
SystemPath=multi(0)disk(0)rdisk(0)partition(1)\ReactOS
Options=/DEBUG /DEBUGPORT=SCREEN /DEBUGPORT=FILE:\Device\Harddisk0\Partition1\debug.log /SOS
:?: :?: :?: :?: :?: :?:
Thanks guys

Re: Two debuggers at same time

Posted: Thu Mar 15, 2018 9:44 pm
by ThFabba
Yes, the code looks like it should handle an arbitrary combination of DEBUGPORT options, so your example should work.

Re: Two debuggers at same time

Posted: Fri Mar 16, 2018 1:49 am
by Julcar
Here are the success code

Code: Select all

[ReactOS_ScreenFile]
BootType=Windows2003
SystemPath=multi(0)disk(0)rdisk(0)partition(2)\ReactOS
Options=/DEBUG /DEBUGPORT=SCREEN /DEBUGPORT=FILE /SOS
Works! :D now we have remote trackig of the debug logs and if the case, press TAB+K until the black prompt appears :geek:

Re: Two debuggers at same time

Posted: Mon Mar 19, 2018 1:55 am
by Julcar
It's weird, with the method I get log messages than with only Debugger=File could not be logged