S
Simon
Hi everyone
I'm having a very frustrating problem with debugging my code at the moment.
The problem concerns breakpoint working in some methods, but not others.
In an aspx codebehind I have the method page load:
private void Page_Load(object sender, System.EventArgs e){
int currentTrialID = 1;
}
I have a breakpoint defined on the first (and last) line in that method
I also have an event handler:
private void btnLogin_Click(object sender, System.Web.UI.ImageClickEventArgs
e) {
int currentTrialID = 1;
}
Again, the breakpoint is on the only line within the method.
The problem is, the breakpoint halts execution on the first method, but
totally ignores the second breakpoint.
I have registered the event as follows:
private void InitializeComponent(){
this.btnLogin.Click += new
System.Web.UI.ImageClickEventHandler(this.btnLogin_Click);
this.Load += new System.EventHandler(this.Page_Load);
}
Thus far I have tried the following:
- Deleting the button and adding a new one with a different name. Double
clicking on the button.
- Deleting the pdb file (don't even know what its for anyway)
- Restarting IIS and the machine.
Debugging works fine for the methods in other classes. In fact, if I place a
breakpoint in a method that the even handler calls - that works fine
I hope someone can help or offer some suggestions as to what to do.
Thank you everone
Simon
I'm having a very frustrating problem with debugging my code at the moment.
The problem concerns breakpoint working in some methods, but not others.
In an aspx codebehind I have the method page load:
private void Page_Load(object sender, System.EventArgs e){
int currentTrialID = 1;
}
I have a breakpoint defined on the first (and last) line in that method
I also have an event handler:
private void btnLogin_Click(object sender, System.Web.UI.ImageClickEventArgs
e) {
int currentTrialID = 1;
}
Again, the breakpoint is on the only line within the method.
The problem is, the breakpoint halts execution on the first method, but
totally ignores the second breakpoint.
I have registered the event as follows:
private void InitializeComponent(){
this.btnLogin.Click += new
System.Web.UI.ImageClickEventHandler(this.btnLogin_Click);
this.Load += new System.EventHandler(this.Page_Load);
}
Thus far I have tried the following:
- Deleting the button and adding a new one with a different name. Double
clicking on the button.
- Deleting the pdb file (don't even know what its for anyway)
- Restarting IIS and the machine.
Debugging works fine for the methods in other classes. In fact, if I place a
breakpoint in a method that the even handler calls - that works fine
I hope someone can help or offer some suggestions as to what to do.
Thank you everone
Simon