Quantcast
Viewing all articles
Browse latest Browse all 4120

Breakpoints being skipped when debugging OnPushButton or click events

Every time I put a breakpoint on code triggered by a mouse click event the breakpoint is ignored when debugging. Unfortunately this leads to a crash, and because I cannot step through I don’t know where the crash is happening. Am I missing something?

I have created a button call btnLoadVise1

Then all do all the event handling stuff below

self.btnLoadVise1.Click += self.btnLoadVise1_Click
    def btnLoadVise1_Click(self,sender,e):
        Rhino.UI.EtoExtensions.PushPickButton(self, self.OnPushButton_LoadVise1)

I place a breakpoint in the OnPushButton_LoadVise1 method shown below but the debugger ignores it

  def OnPushButton_LoadVise1(self,sender,e):
        if rButtonVise1_46mm.Checked:
            
            viceName = "Vice 1"
        
            checked = self.checkBoxMirror.Checked
                
            whichVice,viceName = SetVice(viceName)
            detailToMove,target = Orientate(whichVice)

Any help would be appreciated.

Edit: I also get the same issue when not using the PushPickButton, just using a standard mouseclick event.

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4120

Trending Articles