当前位置:网站首页>Vs2017 is driven by IP debugging (dual machine debugging)
Vs2017 is driven by IP debugging (dual machine debugging)
2022-07-03 15:26:00 【Yulong_】
Preface
I wrote a blog before , Yes, it is vs2017 Debug the driver on the virtual machine through the serial port , But I feel that serial port debugging is not as convenient as network port debugging , Write an article here Debug the driver through the network port Methods .
On how to install WDK、 How to write driver , There are a lot of tutorials on the Internet , And I seem to have written before ? All in all VS2017 Write on 、 Configuring the driver is still very simple and convenient .
Text
Here we call it installed VS2017 The host of is Debugger (IP by 192.168.101.5), The host running the drive on the virtual machine is called Debugged machine (IP by 192.168.123.128)
To ensure that both sides can mutually PING through , If it doesn't work, close the firewalls of both sides .
It is said to guarantee , Virtual machine is Win8 And above ? I never tried. , But it's better to have a professional version of the system , I test myself win10 The home version is no good .
One 、 Debugged machine ( virtual machine ) Configuration of
1、 First , We need to execute the following commands on the debugged machine ,CMD With administrator privileges, run and execute the following commands ( Set debug mode , Set the debugging machine IP)
bcdedit /set {default} DEBUG ON
bcdedit /set TESTSIGNING ON
bcdedit /debug on
//hostip For debugging machine IP, Don't fill in virtual machine IP!port It is the network communication port ,key Divide the password with a dot
bcdedit /dbgsettings net hostip:192.168.101.5 port:50080 key:theprevious.keys.arenot.secure// Check whether the configuration is correct through the following command
bcdedit /dbgsettings
2、 On the debugged machine ( Again, virtual machines ) Need to install WDK Test Target Tools , Be careful 32 Bit system and 64 The bit system should be equipped with debugging tools of the corresponding architecture , My tool path is
C:\Program Files (x86)\Windows Kits\10\Remote\x64
C:\Program Files (x86)\Windows Kits\10\Remote\x86
![]()
All in all , It's easy to find it with any search tool .
3、 The configuration on the debugged machine is completed and installed WDK Test Target After the tool , Restart the system now .
Two 、 Debugger ( installed VS2017 host ) Configuration of
1、 To configure Debugged machine Information





2、 Attach to the kernel and debug



Show connected It means success !!!!!!
but You also need to do the following ! Otherwise, the breakpoint cannot be set !
stay connected After success You also need to click all interrupts , At this time, the virtual machine can no longer move

I waited about 2 Minutes later , There is int 3 The breakpoint

At this point, enter... On the command line g It means to continue , enter

After that, you can load the driver in the virtual machine , Debug the breakpoint in the source code !
above !
This article refers to the following articles , I wrote it after stepping on the pit :
VS2017+WDK10 Driver compilation and debugging _ If there is no ly The blog of -CSDN Blog _vs2017 wdk
边栏推荐
- Kubernetes帶你從頭到尾捋一遍
- The method of parameter estimation of user-defined function in MATLAB
- Second kill system 3 - list of items and item details
- The difference between RAR and zip files
- Jvm-05-object, direct memory, string constant pool
- Construction of operation and maintenance system
- What are the composite types of Blackhorse Clickhouse, an OLAP database recognized in the industry
- win32创建窗口及按钮(轻量级)
- CString中使用百分号
- [set theory] inclusion exclusion principle (complex example)
猜你喜欢

Introduction to redis master-slave, sentinel and cluster mode

Jvm-02-class loading subsystem
![[set theory] inclusion exclusion principle (complex example)](/img/9a/db5a75e27516378c31531773a8a221.jpg)
[set theory] inclusion exclusion principle (complex example)

Popular understanding of random forest

Jvm-06-execution engine

【云原生训练营】模块八 Kubernetes 生命周期管理和服务发现

WinDbg分析dump文件

Reentrantlock usage and source code analysis

Seckill system 3- product list and product details

Seckill system 2 redis solves the problem of distributed session
随机推荐
Seckill system 2 redis solves the problem of distributed session
【云原生训练营】模块七 Kubernetes 控制平面组件:调度器与控制器
Calibre LVL
Baidu AI Cloud helps Shizuishan upgrade the smart health care model of "Internet + elderly care services"
Using multipleoutputs to output multiple files in MapReduce
软件逆向破解入门系列(1)—xdbg32/64的常见配置及功能窗口
视觉上位系统设计开发(halcon-winform)-5.相机
Detailed pointer advanced 2
需要知道的字符串函数
XWiki Installation Tips
通过进程PID获取可执行文件路径(QueryFullProcessImageName)
Digital image processing -- popular understanding of corrosion and expansion
leetcode_ Power of Four
GCC cannot find the library file after specifying the link library path
Basic SQL tutorial
Didi off the shelf! Data security is national security
What are the composite types of Blackhorse Clickhouse, an OLAP database recognized in the industry
Markdown file titles are all reduced by one level
北京共有产权房出租新规实施的租赁案例
Concurrency-02-visibility, atomicity, orderliness, volatile, CAS, atomic class, unsafe