Cov txheej txheem:

Yuav Teeb Li Cas Windows Kernel Debugger Hla Koj Lub Network: 6 Cov Kauj Ruam
Yuav Teeb Li Cas Windows Kernel Debugger Hla Koj Lub Network: 6 Cov Kauj Ruam

Video: Yuav Teeb Li Cas Windows Kernel Debugger Hla Koj Lub Network: 6 Cov Kauj Ruam

Video: Yuav Teeb Li Cas Windows Kernel Debugger Hla Koj Lub Network: 6 Cov Kauj Ruam
Video: yuav coj li cas kom luag nyiam 2024, Hlis ntuj nqeg
Anonim
Yuav teeb li cas Windows Kernel Debugger Hla Koj Lub Network
Yuav teeb li cas Windows Kernel Debugger Hla Koj Lub Network

Debugging yog cov cuab yeej nrov siv los mus rau lub hauv paus ua rau muaj kab laum. Kab laum tuaj yeem nthuav tawm nws tus kheej hauv ntau txoj kev sib txawv. nws tuaj yeem ua rau lub system sib tsoo (tshuaj ntsuam xiav/BSOD), nws tuaj yeem ua rau daim ntawv thov poob, nws tuaj yeem ua rau koj lub kaw lus khov rau npe qee qhov teeb meem. Lub hauv paus ua rau tuaj yeem yog OS, tus tsav tsheb lossis txawm tias muaj teeb meem kho vajtse. Phau ntawv qhia no yuav qhia ntxaws txog yuav teeb tsa lub debugger siv Debugging Tools Rau Windows li cas thiab tsuas yog tsom mus rau debugging nrog Windows OS. Kuv yuav tsis nkag mus rau qhov yuav txheeb xyuas qhov teeb meem raug ntes hauv debugger li cas. Ob peb yam yuav tau ceeb toom ntawm:

  • Cov txheej txheem qhia no yog tsim los rau cov neeg siv khoos phis tawj siab dua thiab tus sau tau xav tias nrog cov lus qhia no.
  • Txog kev ceev ntiag tug qee cov ntaub ntawv tau raug zais.

Thawj qhov peb yuav hla yog cov khoom koj yuav xav tau teeb tsa koj lub debugger.

Kauj ruam 1: Yam Koj Yuav Tsum Tau

Yam Koj Yuav Tsum Tau

  • 2 Windows Computer

    • Tus tswv lub computer uas koj yuav siv rau kev debugging. Lub khoos phis tawj no yuav tsum muaj Windows XP lossis tshiab dua
    • Lub Hom Phiaj Khoos Phis Tawj uas koj yuav tau debugging. Lub khoos phis tawj no yuav tsum muaj Windows 8 lossis tshiab dua. Nws tseem yuav tsum muaj ib qho ntawm cov khoos phis tawj sib txuas pom hauv cov npe ntawm no.
  • 1 Network Hloov/Router (qee yam uas yuav muab IP chaw nyob rau cov khoos phis tawj ntawm lub network)
  • 2 Cat5 kab
  • Debugging Cov Cuab Yeej rau Windows uas koj xav tau los nruab rau ntawm lub computer Host (https://msdn.microsoft.com/en-US/windows/desktop/bg162891)

Tom ntej no peb yuav hla qhov koj yuav tsum tau ua los teeb tsa koj lub khoos phis tawj.

Kauj Ruam 2: Npaj Koj Lub Khoos Phis Tawj

Npaj Koj Lub Computer
Npaj Koj Lub Computer

Host Computer

  • Rau lub khoos phis tawj koj yuav tsum debug ntawm koj yuav tsum teeb tsa Debugging Tools rau Windows uas tuaj yeem pom ntawm no …
  • https://msdn.microsoft.com/en-US/windows/desktop/bg…
  • Txuas lub khoos phis tawj rau koj Hloov/Router

Lub Hom Phiaj Computer

  • Nco ntsoov tias koj siv Windows 8 lossis tshiab dua
  • Nco ntsoov tias koj siv lub network adapter los ntawm cov npe no
  • Txuas lub khoos phis tawj rau koj Hloov/Router

Tam sim no peb muaj cov khoos phis tawj teeb tsa peb yuav xav txuas lawv, pib nrog lub khoos phis tawj phiaj.

Kauj Ruam 3: Teeb Lub Hom Phiaj Computer

Teeb Lub Hom Phiaj Computer
Teeb Lub Hom Phiaj Computer

Koj xav tau ob peb yam kom ua tiav koj lub hom phiaj computer. Koj xav tau tus IP chaw nyob ntawm koj lub computer Host. Koj tuaj yeem tau txais qhov no los ntawm kev siv cov cuab yeej ping. Nov yog yuav ua li cas no…

  1. Qhib qhov hais kom ua sai
  2. Ntaus "ping -4 HostComputerName." Koj yuav tau txais qee yam zoo li hauv qab no …

ping HostComputerName Pinging HostComputerName [192.166.0.123] nrog 32 bytes ntawm cov ntaub ntawv: Teb los ntawm 192.166.0.123: bytes = 32 lub sijhawm = 2268ms TTL = 128 Teb los ntawm 192.166.0.123: bytes = 32 lub sijhawm = 10ms TTL = 128 Teb los ntawm 192.166.0.123: bytes = 32 lub sijhawm = 19ms TTL = 128 Teb los ntawm 192.166.0.123: bytes = 32 lub sijhawm = 1ms TTL = 128 Ping txheeb cais rau 192.166.0.123: Pob ntawv: Xa = 4, Tau txais = 4, Poob = 0 (0% poob), Kwv yees li ncig ncig lub sijhawm hauv milli-seconds: Yam tsawg kawg = 1ms, Siab tshaj = 2268ms, Nruab nrab = 574ms

*Khaws lub qhov rais qhib. Koj yuav xav tau nws tom qab.

Tom ntej no koj yuav tsum tau hloov qee qhov kev teeb tsa khau raj. Cov kev hloov pauv rau koj cov ntaub ntawv teeb tsa khau raj yuav qhia koj lub computer lub hom phiaj yuav ua li cas txuas rau lub khoos phis tawj host. Txhawm rau ua qhov no koj yuav tsum qhib qhov hais kom ua tam sim nrog tus thawj coj (nce) kev tso cai. Nov yog qhov koj ua li ntawd.

  1. Txoj cai nyem rau ntawm qhov hais kom ua tam sim ntawd ntawm lub luag haujlwm
  2. Txoj cai nyem rau ntawm qhov hais kom ua dua
  3. Nyem "Khiav Raws Li Tus Thawj Coj" (Tus Neeg Siv Nyiaj Txiag Tswj yuav nug yog tias koj xav tso cai rau txoj haujlwm no hloov pauv hauv koj lub computer, nyem Yog)

Tam sim no koj yuav tsum teeb tsa lub khau raj teeb tsa kev teeb tsa rau kev debugging network. Koj yuav ua qhov no los ntawm kev siv cov cuab yeej bcdedit. Cov cuab yeej no tau tsim rau hauv OS thiab tuaj yeem ua haujlwm los ntawm ib qho kev hais kom ua kom nrawm dua. Cov theem hauv qab no qhia koj li cas ua cov kev hloov pauv no

  1. Hauv lub qhov rai hais kom ua tshiab no khiav cov hauv qab no…
  2. bcdedit /dbgsettings net hostip = 192.166.0.123 chaw nres nkoj = XXXXX qhov tseem ceeb = z.z.z.z
  3. qhov twg hostip sib npaug tus IP chaw nyob uas koj tau txais thaum koj ua haujlwm ping hais kom ua, XXXXX sib npaug tus lej ntawm 50000 thiab 50099, thiab z yog ib qho lej sib xyaw ua ke. Nov yog qhov piv txwv…

bcdedit /dbgsettings net hostip = 192.166.0.123 chaw nres nkoj: 50002 qhov tseem ceeb = a1b.2c3.d4e.5f6

Nco ntsoov tus yuam sij uas koj tsim. Koj yuav xav tau qhov no thaum koj teeb tsa koj lub computer host. Tam sim no koj yuav tsum qhib lub debugger rau. Koj tuaj yeem siv tib qhov kev hais kom ua tam sim uas koj tau siv ua ntej lossis qhib ib qho tshiab. Txhawm rau txhawm rau debugging ntawm kev ua cov lus txib bcdedit hauv qab no

  1. bcdedit /debug rau
  2. pib dua lub computer

Thov siv daim duab saum toj no uas qhia piv txwv ntawm txhua cov lus txib hauv qib no.

Kauj Ruam 4: Teeb Tus Kheej Lub Computer

Teeb tsa Tus Kheej Lub Computer
Teeb tsa Tus Kheej Lub Computer
Teeb tsa Tus Kheej Lub Computer
Teeb tsa Tus Kheej Lub Computer

Yog tias koj tsis tau ua dhau los, thawj qhov koj yuav tsum ua ntawm lub khoos phis tawj host yog teeb tsa "Debugging Tools For Windows" (https://msdn.microsoft.com/en-US/windows/desktop/bg… uas tau muab rau hauv Thaum qhov no tau teeb tsa, koj tuaj yeem txuas mus rau cov kauj ruam hauv qab no.

  1. Qhib qhov hais kom ua kom siab qhov rai
  2. Xauj mus rau Debuggers cov npe uas koj tau teeb tsa lub debugger. Qhov chaw nyob tsis zoo li qhov no. C: / Program Files (x86) Windows Kits / 8.0 / Debuggers
  3. Yog tias koj lub khoos phis tawj siv lub tshuab ua haujlwm 64 ntsis, hloov cov npe rau x64 cov npe. Yog tias koj tab tom khiav 32 ntsis kev ua haujlwm ntawm koj lub khoos phis tawj computer, hloov cov npe rau x86 cov npe.
  4. Ntaus hauv cov lus txib hauv qab no. kd - k net: chaw nres nkoj = XXXXX, qhov tseem ceeb = z.z.z.z (Qhov twg XXXXX yog qhov chaw nres nkoj koj teeb tsa hauv lub khoos phis tawj lub hom phiaj thiab z.z.z.z yog tus yuam sij koj teeb tsa hauv lub computer phiaj)
  5. Ntaus Enter

Txhawm rau khiav lub debugger siv windbg.

  1. khiav windbg los ntawm phau ntawv koj tau teeb tsa lub debugger los ntawm. Qhov chaw nyob tsis zoo li qhov no. C: / Program Files (x86) Windows Kits / 8.0 / Debuggers \.
  2. Yog tias koj lub khoos phis tawj siv lub tshuab ua haujlwm 64 ntsis, hloov cov npe rau x64 cov npe. Yog tias koj tab tom khiav 32 ntsis kev ua haujlwm ntawm koj lub khoos phis tawj computer, hloov cov npe rau x86 cov npe.
  3. Ob npaug nias rau ntawm windbg.exe
  4. Nyem rau File
  5. Nyem Kernel Debug
  6. Xaiv Net tab
  7. Nkag mus rau tus lej chaw nres nkoj uas koj teeb tsa hauv lub computer phiaj
  8. Nkag mus rau tus yuam sij koj teeb tsa ntawm lub computer phiaj.
  9. Ntaus Okay

Thov siv cov duab saum toj no uas qhia piv txwv ntawm txhua cov lus txib hauv qib no. Tam sim no peb muaj tus tswv tsev thiab phiaj xwm phiaj xwm teeb tsa peb tuaj yeem txuas ob.

Kauj ruam 5: Txuas rau Debugger

Txuas rau Debugger
Txuas rau Debugger
Txuas rau Debugger
Txuas rau Debugger

Yog tias txhua yam tau teeb tsa kom raug qhov no yog ib qho yooj yim heev. Qhov tseeb tom qab koj teeb tsa lub computer host koj yuav tau pom ntau cov ntawv tshwm hauv lub qhov rais. Yog tias yog, koj ua tiav. Yog tias tsis yog, txhua yam koj yuav tsum tau ua yog rov pib dua lub computer phiaj. Raws li lub hom phiaj khoos phis tawj khau raj koj yuav pib pom cov ntawv ntawm koj lub qhov rais debugging (kd lossis windbg nyob ntawm qhov koj siv) ntawm lub computer host. Nws yuav zoo ib yam li cov duab saum toj no.

Kauj Ruam 6: Hauv Xaus

Hauv Xaus
Hauv Xaus

Tam sim no koj tau ua tiav txuas koj lub khoos phis tawj nrog lub debugger koj tuaj yeem pib pab daws txhua yam teeb meem hauv ntiaj teb computer. Qhov no tsuas yog thawj kauj ruam hauv txoj kev ntev mus rau lub hauv paus ua rau muaj teeb meem hauv computer. Saib rau kab lus ntxiv yav tom ntej uas kuv daws teeb meem yuav pib tshawb xyuas ntau yam teeb meem sib txawv uas koj yuav ntsib.

Pom zoo: