• RSS
  • Twitter
  • FaceBook

Welcome to ISAserver.org

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

How to debug the code in FilterInit()??

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [ISA Server 2004 Misc.] >> ISA Server 2004 Programming >> How to debug the code in FilterInit()?? Page: [1]
Login
Message << Older Topic   Newer Topic >>
How to debug the code in FilterInit()?? - 1.Sep.2005 10:32:00 PM   
liuyuanxun_1983

 

Posts: 16
Joined: 17.Aug.2005
From: china
Status: offline
The FilterInit() will be called immediatly the firewall starts. Only after the firewall started could we debug the filter. But who can tell me how I can debug the code in FilterInit()?
Post #: 1
RE: How to debug the code in FilterInit()?? - 2.Sep.2005 4:52:00 AM   
JesseA

 

Posts: 51
Joined: 15.Aug.2002
Status: offline
Most simple way that I see is to insert "Sleep(10000);" at the beginning of FilterInit function. After firewall service start quickly attach debugger and set breakpoint to next line after Sleep function.
Inserting DebugBreak (int 3) will not work in this function, in this case firewall service will just crash (AFAIK).

(in reply to liuyuanxun_1983)
Post #: 2
RE: How to debug the code in FilterInit()?? - 7.Oct.2005 4:21:00 PM   
tech89

 

Posts: 6
Joined: 21.Sep.2005
From: Virginia, USA
Status: offline
I have also put an assert(0); into the code just before my breakpoint. When the firewall throws the assert, attach your debugger then hit the Continue button on the assert dialog.

(in reply to liuyuanxun_1983)
Post #: 3
RE: How to debug the code in FilterInit()?? - 27.Oct.2005 11:30:00 AM   
el_akchurin

 

Posts: 6
Joined: 11.Apr.2005
From: Russia
Status: offline
quote:
Originally posted by yuanxun liu:
The FilterInit() will be called immediatly the firewall starts. Only after the firewall started could we debug the filter. But who can tell me how I can debug the code in FilterInit()?

If you have such a problem: SCM terminates service before you can attach to it, you have to set some additional parameters for service in registry. See "Debug services" in MSDN.

(in reply to liuyuanxun_1983)
Post #: 4

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [ISA Server 2004 Misc.] >> ISA Server 2004 Programming >> How to debug the code in FilterInit()?? Page: [1]
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts