大家好,又见面了,我是你们的朋友全栈君。
序
用ida6.8pro + windbgx64调试x64的pip.exe, 说找不到windbg.
我已经装了一个从csdn下载的windbgx64-v6.x.
找资料, 说要修改ida.cfg, 添加IDA环境变量DBGTOOLS为x86版的windbg路径。
尝试在dbg_windbg.cfg中添加DBGTOOLS, IDA启动时说在dbg_windbg.cfg中的DBGTOOLS环境变量无效, 忽略了。看来人家连配置文件中的无效参数都检查了。
查看IDA.cfg, 里面留了一段DBGTOOLS的样例。就在样例下面填入实际的DBGTOOLS.
以前非win10环境, 没有在IDA中直接配置过DBGTOOLS, 也能用IDA+windbg调试程序, 估计IDA默认了什么windbg路径, 正好windbg是默认安装吧。
//-------------------------------------------------------------------------
// Processor specific parameters
//-------------------------------------------------------------------------
#ifdef __PC__ // INTEL 80x86 PROCESSORS
//
// Location of Microsoft Debugging Engine Library (dbgeng.dll)
// This value is used by both the windmp (dump file loader) and the windbg
// debugger module. Please also refer to dbg_windbg.cfg
// (note: make sure there is a semicolon at the end)
//DBGTOOLS = "C:\\Program Files\\Debugging Tools for Windows (x86)\\";
DBGTOOLS = "C:\\Program Files (x86)\\Windows Kits\\10\\Debuggers\\x86\\";
USE_FPP = YES // Floating Point Processor
// instructions are enabled
// IBM PC specific analyzer options
正好在win10下用windbg, 就去下载了一个win10sdk, 里面有x86和x64版的windbg,也不大,就600多MB。开始尝试只用win10sdk下载程序去下载windbg(x86,x64), 下载回来是不能安装的, 缺东西。下载全了win10sdk, 再去选择安装(只安装x86,x64版的windbg)是可以的。
用win10sdk安装后的windbg是10.1版本的, 将已经安装的windbgx64-v6.x卸掉。
再运行IDA可以带参数调试x64版的程序了。
IDA在切换调试器那里, 并没有指定要使用哪个windbg的选项, 都在IDA.cfg中指定。
虽然IDA使用x86版的windbg来调试x64的程序, 但是第一次使用时, IDA要求选择x64版的dbgsrv.exe。
这样还挺合理的, x86版的调试前端和x64的调试服务器通过socket交互, 使x86的调试前端可以调试x64版的目标程序。
又用idaq.exe打开idaq64.exe, 果真, idaq64.exe也是x86程序。
开始想验证下选择dbgsrv.exe那步, 卸了IDA再装, 再初次调试时,就不用选择了, 估计是读注册表中的windbgx64的目录或存到注册表中去了。
换个思路来验证。
netstat -a -o -n
可以看到使用端口的PID, 在任务管理器中查看PID对应哪个程序, 也可以找到使用的是哪个dbgsrv.exe.
关于IDA调试时调试服务器使用的时哪个端口, 可以在IDA被调试程序的进程选项中可以看到, 默认是tcp端口5000, 本地调试服务器.
tcp:port=5000,server=localhost
C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\dbgsrv.exe
win10版的windbg
用windbg-6.x在win10下单独调试程序时可以的。
msdn上推荐的win10下的windbg是win10sdk中windbg-10.x.
下载了一份备用, 当前版本是win10sdk-WinDbg10.0.1.15063.468
win10sdk下载点
win10sdk.zip.001
win10sdk.zip.002
解压后的win10sdk安装文件夹文件列表
D:.
│ UserExperienceManifest.xml
│ winsdksetup.exe
│
├─Installers
│ 0253f7df0974f9d7169b410d812a5385.cab
│ 03fbc2dfe9d3e7bb2389c7ed18c6ad3e.cab
│ 05047a45609f311645eebcac2739fc4c.cab
│ 05254f60ea43b4e3959b17cdb03268c0.cab
│ 07a57cdb41ba28cced14005f087267be.cab
│ 08e9468089f54c8455f59fd9bb48fcec.cab
│ 0b2a4987421d95d0cb37640889aa9e9b.cab
│ 1064f2728b03ff6fdb4e891d229062b6.cab
│ 114c321d61ae77816824fed67cd25704.cab
│ 12613ba26e037e99a874a64c1084f880.cab
│ 126c039acc6f1c0a9426a128efb713e7.cab
│ 12a529d45b148a2d28290a8a7535b37b.cab
│ 13bf5f9b75a9d1c9f44ba5d34a14227f.cab
│ 13d68b8a7b6678a368e2d13ff4027521.cab
│ 15bc5316e373960d82abc253bceaa25d.cab
│ 16ab2ea2187acffa6435e334796c8c89.cab
│ 17075d54dc55d39ba1208865d201793a.cab
│ 19248fabbb2098a7b88c4a2786066bcc.cab
│ 1a822224523be67061edcc97f6c0e36a.cab
│ 1c85c1620b848ed039da70202d6398c8.cab
│ 1de82860db02f762c5f65a73daa31f3e.cab
│ 1f32e9acf0bb1e6a5f485cd8670cd8e1.cab
│ 220daf459e79c5d26366654b1b482e87.cab
│ 262fa3187c00a1f695e0c3eeb7ecf423.cab
│ 2630bae9681db6a9f6722366f47d055c.cab
│ 263104e5ce3a72f68151a93d88a3f22f.cab
│ 2868a02217691d527e42fe0520627bfa.cab
│ 2c1331a0f4ecc46dfa39f43a575305e0.cab
│ 2c1817d3f3f33cd01376c5ec441cc636.cab
│ 2cd67f5657d2cee1a106c4fdab506e58.cab
│ 2dd914bb5abd9365f932d15eede09c52.cab
│ 2e876dd22fa5e6785f137e3422dd50ec.cab
│ 306e26e920fd32cb02bf538b4e799a0d.cab
│ 34ee98a7c9420178c55f176f75c3fe10.cab
│ 36b6e56863b0fba998f2b377c061d09b.cab
│ 3960f55df7c8073f3997269e5e390abc.cab
│ 3988e4dfdc3f1d180c47a61a0ca76215.cab
│ 3a53dffe0b4548753bc34825894f19bf.cab
│ 3ca392fde3898c3be052ddcddd14bb5f.cab
│ 3cb59db8dde10e14373666945be55ae0.cab
│ 3cf96a08c3b29e9dcf5946d28affb747.cab
│ 3e2f7be479e3679d700ce0782e4cc318.cab
│ 4035a83dc8e73244d15d1196d55059c3.cab
│ 40d92f424eff54b03db4c51669f9a8d6.cab
│ 412c1caad96b8fe5e8f7f6735585f297.cab
│ 423fe5f3eee223f8d9be48f3f34ece90.cab
│ 437e52bd67ebe977a8957439db5ecf75.cab
│ 43cc1b2daf931a3f0ea4ad696c2327fb.cab
│ 43d52fdb99b86048e15fbd34f5b99cb5.cab
│ 44472e2321abba45e828de25827264a3.cab
│ 45821d1fcb842bff411f5f2f8c1d4106.cab
│ 463ad1b0783ebda908fd6c16a4abfe93.cab
│ 47133212c2f5ccf49392d7762293a075.cab
│ 4ac48dbdddbc8ce04721f519b9cf1698.cab
│ 4ad4df991deb0eaa1f79f896b959d580.cab
│ 4c3ef4b2b1dc72149f979f4243d2accf.cab
│ 4c59234340aaf3a96ec480c1aad8d179.cab
│ 4dc69cc131b3f4fdde53e76d759509dc.cab
│ 4de7a1422374f98369172705b05d4bf9.cab
│ 4e2dea081242e821596b58b31bc22cca.cab
│ 4ec14c5368b7642563c070cd168960a8.cab
│ 4fe4c8b88812f5339018c0eef95acdb9.cab
│ 50ce7925226cb6ab8e0fe9ad9fd58433.cab
│ 53174a8154da07099db041b9caffeaee.cab
│ 5509e4710313421be8d5e7cfbfde4d30.cab
│ 563138901adf40a699df4654138ac397.cab
│ 56a114848fda9a7e47bad4b3fc4be9a6.cab
│ 576cff9c50e8085ab8d9c28ee12bac3e.cab
│ 58314d0646d7e1a25e97c902166c3155.cab
│ 590d28783ff280b8b0016c3492433241.cab
│ 598442d9f84639d200d4f3af477da95c.cab
│ 5a22e5cde814b041749fb271547f4dd5.cab
│ 5c2fcb46e03eada0ed0cad44a3f5c71f.cab
│ 5c9ecffb06ed5f4fe5fb7db86bf7328b.cab
│ 5cf1d61a223a02ff2f52fe05f058d52e.cab
│ 5ec024b118a7fa2df6f4d7814455db58.cab
│ 5f6cfec263cd265cf3b0d97fd78ddf05.cab
│ 5f7ef4904f75bf6b3b9b0f8975ad1492.cab
│ 5fc9ab53cb14d22ad1cf817de44a1681.cab
│ 5fcdd069d5d908ef045e1d8a27bea2c1.cab
│ 5ffd6ef416eb7df2bc21182bfecc7c37.cab
│ 61d57a7a82309cd161a854a6f4619e52.cab
│ 66c7c64126fbf84f47ccec556d149b12.cab
│ 67c9fd1fab36154e6e7e429610cd67c8.cab
│ 67fb2af3d2219b403e419535a547c019.cab
│ 685f3d4691f444bc382762d603a99afc.cab
│ 68de71e3e2fb9941ee5b7c77500c0508.cab
│ 69661e20556b3ca9456b946c2c881ddd.cab
│ 6b12414fdb1b4978419abcd383206c09.cab
│ 6d478962ce836d1291cba5053dffb31e.cab
│ 6e86d5003787b5a44d77f0142b20f2ff.cab
│ 6ee7bbee8435130a869cf971694fd9e2.cab
│ 6fbf672b0395b5a8a09475ccbec0ae7a.cab
│ 703316c9de0a32acf316d03b1cffc559.cab
│ 7178f554c01f912c749b622564106b02.cab
│ 72bda6e16f5c7a040361c1304b4b5b36.cab
│ 7354f5966f718c3836de51a0803cccaf.cab
│ 73b80f421d7f3df5a71bd772f56bf3ae.cab
│ 75122a9de1700f465c29b6cc76fa6372.cab
│ 75bcfe906ad456e45776a2b93fae9a05.cab
│ 766c0ffd568bbb31bf7fb6793383e24a.cab
│ 77db8ab55a0b236db83c55ced6e8a9a3.cab
│ 78fa3c824c2c48bd4a49ab5969adaaf7.cab
│ 79e9b68a34bc84ab465fe1b79b84a325.cab
│ 7afc7b670accd8e3cc94cfffd516f5cb.cab
│ 7b7c7382fe1ea268787e911da88eb37e.cab
│ 7bd0810d8817dfda6c19b8331a92e599.cab
│ 7cb1ba9318f4b586c6a3bdd541e7f3ad.cab
│ 80dcdb79b8a5960a384abe5a217a7e3a.cab
│ 8125ee239710f33ea485965f76fae646.cab
│ 818d2d3634f0efb6e64d7e7c8ca5f98b.cab
│ 838060235bcd28bf40ef7532c50ee032.cab
│ 86db832a269f4e44217b74b98deda3af.cab
│ 89d9bbd87f7a5560bafa520a4ebfdf17.cab
│ 8d357ad927d57d815d8a1efef44ed1e3.cab
│ 8da73ae89e24f0b5cdf1787799c2a65f.cab
│ 8daf1f236e631041cdaa802ddb9ccc3d.cab
│ 8e4755178e6b5bcba8d3538c3630b7a5.cab
│ 8eb01de6160e8924be8582861808a9b5.cab
│ 8eec88833ea319aaa1061d6528c77b93.cab
│ 8fe3c1ca244ece932599eb0b61855d8f.cab
│ 8ffed2ed73a8e46cf881f0932f55c208.cab
│ 9126f6ff98d955951fe9323f4444c119.cab
│ 921968b1c32e680f338247ac68950f5a.cab
│ 931721e121ef91707ddcb6cac354d95c.cab
│ 94521fd1a9c57258998d60ce60dc43c3.cab
│ 948a611cd2aca64b1e5113ffb7b95d5f.cab
│ 9494c0c1f781298600a3c07e837acd0f.cab
│ 96076045170fe5db6d5dcf14b6f6688e.cab
│ 96e8f767221532c6446fd1b8dad53b60.cab
│ 9a7145bc3b132e5da6d44c0ab4a1af70.cab
│ 9ba47e440ec2fbe9a3d32a53bf0f68dc.cab
│ 9bcb3fab78e80d68be28892ea7ad46c3.cab
│ 9bfca1e044c38e04afe2363d3db899c8.cab
│ a17683486ace64c3f9a1cacb81ee0260.cab
│ a1e2a83aa8a71c48c742eeaff6e71928.cab
│ a330840cf08ad4d210703c9acd1bf2b8.cab
│ a35cd6c9233b6ba3da66eecaa9190436.cab
│ a68c0988d16ee124783efd98074dcbf9.cab
│ a74408a87a51829b89e5282e73974d74.cab
│ a76e4219ecb0f1c0006a6fe080c54ad9.cab
│ a790274be4f3d6f1814e3fae2808e163.cab
│ aa9c58552bdb82dae4ed48ece081cfe3.cab
│ ab8c11616091812d6c7137e366ba1d8d.cab
│ ac4ddfcf1101c483559a5f6e36f1ef2d.cab
│ ae9e5145177e128614352442ac936106.cab
│ Application Verifier arm External Package-arm_en-us.msi
│ Application Verifier x64 External Package-x64_en-us.msi
│ Application Verifier x86 External Package-x86_en-us.msi
│ b1a824e2952532fe8fd0145f5d148d25.cab
│ b1a8ecf890b4ffddd05e8c9422f55db7.cab
│ b2f03f34ff83ec013b9e45c7cd8e8a73.cab
│ b5f177b84c0ec473cbd69557634b27cd.cab
│ b80b7321357f7c9f281536f9440dfe68.cab
│ b82881a61b7477bd4eb5de2cd5037fe2.cab
│ b913ca15956d14df2d4b1f11ae07885b.cab
│ b98a31e36735eb82b3b238c68f36fbbf.cab
│ ba5d20281a858248e59d96d75c014391.cab
│ ba60f891debd633ae9c26e1372703e3c.cab
│ baa2d817ae180ba7e772f1543c3bbdea.cab
│ bd4b6e22633abadb45b75bc86caaa120.cab
│ be06eca425b0c3c2f4de61cbfe9bc7a7.cab
│ beb5360d2daaa3167dea7ad16c28f996.cab
│ c1be9e93e88be3f6207f5cc074775d81.cab
│ c1c7e442409c0adbf81ae43aa0e4351f.cab
│ c2aabf6ea5c1d348ec22f3aeb92f8656.cab
│ c4d38a2c963178a1a3469ca3d913768e.cab
│ cd9128b760c06a010e1621af6528432e.cab
│ cdea5502a35d09ddfbcda12e3a391dc0.cab
│ d117bb4bc77abadc7c603552e122e513.cab
│ d3e405ab232f8aca8c5b6a48a913d6b0.cab
│ d55d1e003fbb00a12c63b8f618e452bf.cab
│ d581181fb710aa398ec70635888ca153.cab
│ d67259e233ce975d91c3b02d483becad.cab
│ dcb0a55d6cacaa05ead299e1d3de3c6d.cab
│ de111c3d435b0785b31b28c386ee691f.cab
│ dotNetFx45_Full_x86_x64.exe
│ e072b3b3d3164e26b63338dce51862a7.cab
│ e10768bb6e9d0ea730280336b697da66.cab
│ e10f8811d44b50885777f56f8272f66b.cab
│ e10f9740446a96314a1731aa7cb4286a.cab
│ e24dd258b3bbfa69c0842948fe0dd670.cab
│ e3bfdbe21d5f48f62e6347294e6e8492.cab
│ e3d1b35aecfccda1b4af6fe5988ac4be.cab
│ e5950ce9ba509b3370ebf328742a5f45.cab
│ e59830bab4961666e8d8c2af1e5fa771.cab
│ e5c4b31ff9997ac5603f4f28cd7df602.cab
│ e61af601f20358b895b5bb1c66fe0d24.cab
│ e87de81a902e0c8cde9e1355c3ff5f3f.cab
│ e8bc712abeffd7c9711ee3f55d4aa99b.cab
│ e98fa5eb5fee6ce17a7a69d585870b7c.cab
│ ec9ab4bbb809719605d27da343b909e8.cab
│ ec9d39539c27e8cf5ad39bffce00c34e.cab
│ ed4d1c6b9811d81e3cebc553ae604f0d.cab
│ ed5aa2f399092df3084cce671f072cac.cab
│ ef4472fd7552490fd759075186ed2ec8.cab
│ f105a73f98cfc88c7b64d8f7b39a474c.cab
│ f4661eda3692e166927c14c96164150a.cab
│ f7b25543b47329ef932ad391c72c4ab7.cab
│ f9b24c8280986c0683fbceca5326d806.cab
│ f9ff50431335056fb4fbac05b8268204.cab
│ fe38b2fd0d440e3c6740b626f51a22fc.cab
│ fe80f1b6d4cf60c919f4b3a0cd2f4306.cab
│ fef2cfedd6135e0ed85290b83f3682c3.cab
│ ff8dd5a961e46b5d05906ac4b7a5ba37.cab
│ Kits Configuration Installer-x86_en-us.msi
│ MobileIntellisense-x86.msi
│ MSI Development Tools-x86_en-us.msi
│ MsiVal2-x86_en-us.msi
│ Orca-x86_en-us.msi
│ SDK ARM Additions-x86_en-us.msi
│ SDK ARM Redistributables-x86_en-us.msi
│ SDK Debuggers-x86_en-us.msi
│ UAPMobile-ARM.msi
│ UAPMobile-x86.msi
│ Universal CRT Extension SDK-x86_en-us.msi
│ Universal CRT Headers Libraries and Sources-x86_en-us.msi
│ Universal CRT Redistributable-x86_en-us.msi
│ Universal CRT Tools x64-x64_en-us.msi
│ Universal CRT Tools x86-x86_en-us.msi
│ Universal General MIDI DLS Extension SDK-x86_en-us.msi
│ WinAppDeploy-x86_en-us.msi
│ Windows App Certification Kit Native Components-x64_en-us.msi
│ Windows App Certification Kit Native Components-x86_en-us.msi
│ Windows App Certification Kit SupportedApiList ARM-arm_en-us.msi
│ Windows App Certification Kit SupportedApiList x86-x86_en-us.msi
│ Windows App Certification Kit x64-x86_en-us.msi
│ Windows App Certification Kit x86-x86_en-us.msi
│ Windows Desktop Extension SDK Contracts-x86_en-us.msi
│ Windows Desktop Extension SDK-x86_en-us.msi
│ Windows IoT Extension SDK Contracts-x86_en-us.msi
│ Windows IoT Extension SDK-x86_en-us.msi
│ Windows IP Over USB-x86_en-us.msi
│ Windows SDK ARM Desktop Tools-x86_en-us.msi
│ Windows SDK Desktop Headers arm-x86_en-us.msi
│ Windows SDK Desktop Headers arm64-x86_en-us.msi
│ Windows SDK Desktop Headers x64-x86_en-us.msi
│ Windows SDK Desktop Headers x86-x86_en-us.msi
│ Windows SDK Desktop Libs arm-x86_en-us.msi
│ Windows SDK Desktop Libs arm64-x86_en-us.msi
│ Windows SDK Desktop Libs x64-x86_en-us.msi
│ Windows SDK Desktop Libs x86-x86_en-us.msi
│ Windows SDK Desktop Tools arm64-x86_en-us.msi
│ Windows SDK Desktop Tools x64-x86_en-us.msi
│ Windows SDK Desktop Tools x86-x86_en-us.msi
│ Windows SDK DirectX ARM Remote-arm_en-us.msi
│ Windows SDK DirectX x64 Remote-x64_en-us.msi
│ Windows SDK DirectX x86 Remote-x86_en-us.msi
│ Windows SDK EULA-x86_en-us.msi
│ Windows SDK Facade Windows WinMD Versioned-x86_en-us.msi
│ Windows SDK for Windows Store Apps Contracts-x86_en-us.msi
│ Windows SDK for Windows Store Apps DirectX ARM Remote-arm_en-us.msi
│ Windows SDK for Windows Store Apps DirectX x64 Remote-x64_en-us.msi
│ Windows SDK for Windows Store Apps DirectX x86 Remote-x86_en-us.msi
│ Windows SDK for Windows Store Apps Headers-x86_en-us.msi
│ Windows SDK for Windows Store Apps Legacy Tools-x86_en-us.msi
│ Windows SDK for Windows Store Apps Libs-x86_en-us.msi
│ Windows SDK for Windows Store Apps Metadata-x86_en-us.msi
│ Windows SDK for Windows Store Apps Tools-x86_en-us.msi
│ Windows SDK for Windows Store Apps-x86_en-us.msi
│ Windows SDK for Windows Store Managed Apps Libs-x86_en-us.msi
│ Windows SDK Modern Non-Versioned Developer Tools-x86_en-us.msi
│ Windows SDK Modern Versioned Developer Tools-x86_en-us.msi
│ Windows SDK Redistributables-x86_en-us.msi
│ Windows SDK Signing Tools-x86_en-us.msi
│ Windows SDK-x86_en-us.msi
│ Windows Team Extension SDK Contracts-x86_en-us.msi
│ Windows Team Extension SDK-x86_en-us.msi
│ WindowsPhoneSdk-Desktop.msi
│ WinRT Intellisense Desktop - en-us-x86_en-us.msi
│ WinRT Intellisense Desktop - Other Languages-x86_en-us.msi
│ WinRT Intellisense IoT - en-us-x86_en-us.msi
│ WinRT Intellisense IoT - Other Languages-x86_en-us.msi
│ WinRT Intellisense PPI - en-us-x86_en-us.msi
│ WinRT Intellisense PPI - Other Languages-x86_en-us.msi
│ WinRT Intellisense UAP - en-us-x86_en-us.msi
│ WinRT Intellisense UAP - Other Languages-x86_en-us.msi
│ WPT Redistributables-x86_en-us.msi
│ WPTarm-arm_en-us.msi
│ WPTx64-x86_en-us.msi
│ WPTx86-x86_en-us.msi
│ X64 Debuggers And Tools-x64_en-us.msi
│ X86 Debuggers And Tools-x86_en-us.msi
│
└─Redistributable
├─10.1.0.0
│ UAPSDKAddOn-x86.msi
│
└─4.7.02046
cab1.cab
netfx_47mtpack.msi
sdk_tools47.cab
sdk_tools47.msi
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/137364.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...