# Debugging codebehindmodule example

**URL:** https://talk.remobjects.com/t/debugging-codebehindmodule-example/24761
**Category:** Fire
**Created:** [May 14, 2021, 8:12pm UTC](https://talk.remobjects.com/t/debugging-codebehindmodule-example/24761 "2021-05-14T20:12:05Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![JohnMoshakis](https://talk.remobjects.com/user_avatar/talk.remobjects.com/johnmoshakis/32/2286_2.png) [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)
#### Post date: [May 14, 2021, 8:12pm UTC](https://talk.remobjects.com/t/debugging-codebehindmodule-example/24761/1 "2021-05-14T20:12:05Z")

</div>

Hi,  
Im trying to debug this example but Fire keeps crashing. I have these breakpoints set and when loading it appears to hit the breakpoint inside the onclick event before crashing.

 ![Screen Shot 2021-05-14 at 4.09.53 PM](https://talk.remobjects.com/uploads/default/original/2X/0/07fb53b6942f1a68a5d92911d6f241e42e8767c2.jpeg)

Cheers,  
John

---

<div class="post-metadata">

### Author: ![JohnMoshakis](https://talk.remobjects.com/user_avatar/talk.remobjects.com/johnmoshakis/32/2286_2.png) [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)
#### Post date: [May 14, 2021, 8:31pm UTC](https://talk.remobjects.com/t/debugging-codebehindmodule-example/24761/2 "2021-05-14T20:31:45Z")

</div>

I cant see anything in console that looks relevant.

Below is what chrome looks like. It appears the constructor was executed but it didnt stop on the breakpoint.

 ![Screen Shot 2021-05-14 at 4.29.50 PM](https://talk.remobjects.com/uploads/default/original/2X/6/679e4b1c0ec9a03121f4fa4ae5d513453be88951.png)

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [May 14, 2021, 10:09pm UTC](https://talk.remobjects.com/t/debugging-codebehindmodule-example/24761/3 "2021-05-14T22:09:35Z")

</div>

> [@JohnMoshakis](#):
>
> but Fire keeps crashing. I have these breakpoints

Known bug with Black theme in 2627. (fixed in 2629, I should add 😉

---

<div class="post-metadata">

### Author: ![JohnMoshakis](https://talk.remobjects.com/user_avatar/talk.remobjects.com/johnmoshakis/32/2286_2.png) [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)
#### Post date: [May 15, 2021, 2:16am UTC](https://talk.remobjects.com/t/debugging-codebehindmodule-example/24761/4 "2021-05-15T02:16:12Z")

</div>

It no longer crashes but where it stops is strange. When loading it hits both breakpoints. When I click the button it doesnt hit the breakpoint inside the onclick at all.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [May 16, 2021, 3:06pm UTC](https://talk.remobjects.com/t/debugging-codebehindmodule-example/24761/5 "2021-05-16T15:06:19Z")

</div>

> [@JohnMoshakis](#):
>
> but where it stops is strange. When loading it hits both breakpoints. When I click the button it doesnt hit the breakpoint inside the onclick at all.

That’d be a separate issue. Can I get a concrete test-case for this? thanx!

---

<div class="post-metadata">

### Author: ![JohnMoshakis](https://talk.remobjects.com/user_avatar/talk.remobjects.com/johnmoshakis/32/2286_2.png) [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)
#### Post date: [May 16, 2021, 3:10pm UTC](https://talk.remobjects.com/t/debugging-codebehindmodule-example/24761/6 "2021-05-16T15:10:45Z")

</div>

[CodeBehindModule.zip](https://talk.remobjects.com/uploads/short-url/xwAYqH3RPxeG7Gt1mmeG6zRQKAH.zip) (521.2 KB)

It was just the webmodule code behind template.

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [May 17, 2021, 12:10pm UTC](https://talk.remobjects.com/t/debugging-codebehindmodule-example/24761/7 "2021-05-17T12:10:43Z")

</div>

Thanks, logged as [bugs://85925](https://www.remobjects.com/portal/bugs/?id=85925)

---

<div class="post-metadata">

### Author: ![elenap](https://talk.remobjects.com/user_avatar/talk.remobjects.com/elenap/32/21512_2.png) [@elenap](https://talk.remobjects.com/u/elenap)
#### Post date: [May 18, 2021, 1:24pm UTC](https://talk.remobjects.com/t/debugging-codebehindmodule-example/24761/8 "2021-05-18T13:24:32Z")

</div>

Hello John,

I can’t reproduce the issue. Steps I tried to reproduce:

1. Set breakpoint at line 15  
`okButton.innerHTML := 'Thanx!';`  
and at line 24  
`okButton.innerHTML := 'Click Me, Please';`
2. Run the testcase, it stops on breakpoint at line 24.
3. Continue
4. Click button “Click Me, Please” - it stops on breakpoint at line 15

Could you describe your steps to get the problem?

Thanks.

---

<div class="post-metadata">

### Author: ![JohnMoshakis](https://talk.remobjects.com/user_avatar/talk.remobjects.com/johnmoshakis/32/2286_2.png) [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)
#### Post date: [May 19, 2021, 2:24am UTC](https://talk.remobjects.com/t/debugging-codebehindmodule-example/24761/9 "2021-05-19T02:24:03Z")

</div>

Hi Elena,

I dont think Im doing anything special, I just create a code behind module project and run it.

 ![Screen Shot 2021-05-18 at 10.17.34 PM](https://talk.remobjects.com/uploads/default/original/2X/8/8ffe930d3903edde7c481d565dcaac8bf8315a70.jpeg)

This is running in the debugger, it hits the first breakpoint when inside the constructor and I have to press step over several times to where it sets click me please

Im running Catalina with an intel mac mini, I can try on my m1 mac to see if that makes a difference.

Chrome 90.0.4430.212

Cheers,  
John

---

<div class="post-metadata">

### Author: ![JohnMoshakis](https://talk.remobjects.com/user_avatar/talk.remobjects.com/johnmoshakis/32/2286_2.png) [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)
#### Post date: [May 19, 2021, 2:40am UTC](https://talk.remobjects.com/t/debugging-codebehindmodule-example/24761/10 "2021-05-19T02:40:20Z")

</div>

It works the same on M1 as well.

I did notice something funny. If you look at the code

When loading it hits line 14, of course it ignores 15 but when I hit the button it stops at line 15 ignoring 14.

 ![Screen Shot 2021-05-18 at 10.36.25 PM](https://talk.remobjects.com/uploads/default/original/2X/a/a5c62d0ce288394899fc4accafd1b893bf3e6c35.jpeg)

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [May 24, 2021, 9:00am UTC](https://talk.remobjects.com/t/debugging-codebehindmodule-example/24761/11 "2021-05-24T09:00:35Z")

</div>

[bugs://85925](https://www.remobjects.com/portal/bugs/?id=85925) got closed with status fixed.
