D
D
Dutymy2021-10-01 03:47:50
visual studio
Dutymy, 2021-10-01 03:47:50

How to compile and debug the first driver?

I'm trying to write my first Hello World driver
. It's building, but how do I run it in visual studio 2019 debugging?
That is, I get

Please select a valid target machine for deployment from the project property page
when using DebuggingToolsForWindows-KernelDebugger
And when using LocalWindowsDebugger, the error on the photo... 61565a5a4d8d2057542361.png
Signature verification was successfully disabled via bcdedit.exe -set TESTSIGNING ON

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
none7, 2021-10-01
@Dutymy

As far as I know, the regular Windows debugger cannot debug the kernel or drivers locally. This Softice was able to do this and no one else. Kernel debugging is the kind of thing that can crash the system. After all, a break point that is harmless at first glance, set at each single step, if a non-debugged thread gets into it, will break this nuclear thread. And the nuclear debugger needs the correct operation of this very kernel in the same way, and working with the debugger generates many threads in the kernel.
So, without a second machine, you can debug the kernel only by logs and crashes. Why do you think there are so few nuclear programmers?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question