# Breakpoints

**URL:** <https://forums.solar2d.com/t/breakpoints/320500>\
**Category:** Corona Editor\
**Created:** [December 5, 2013, 3:34am UTC](https://forums.solar2d.com/t/breakpoints/320500 "2013-12-05T03:34:54Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![cspence](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@cspence](https://forums.solar2d.com/u/cspence)\
**Post date:** [December 5, 2013, 3:34am UTC](https://forums.solar2d.com/t/breakpoints/320500/1 "2013-12-05T03:34:54Z")

</div>

Do break points work right now?

I am using the GitHub version and when I set a breakpoint it still starts at the beginning and ignores any breakpoints.

---

<div class="post-metadata">

**Author:** ![Perry\_Clarke](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/p/bc79bd/32.png) [@Perry\_Clarke](https://forums.solar2d.com/u/Perry_Clarke)\
**Post date:** [December 6, 2013, 8:43pm UTC](https://forums.solar2d.com/t/breakpoints/320500/2 "2013-12-06T20:43:51Z")

</div>

I’ve just posted a new test release to Github which fixes many bugs.&nbsp; Give it a whirl, it should fix this issue.

---

<div class="post-metadata">

**Author:** ![cspence](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@cspence](https://forums.solar2d.com/u/cspence)\
**Post date:** [December 6, 2013, 8:55pm UTC](https://forums.solar2d.com/t/breakpoints/320500/3 "2013-12-06T20:55:47Z")

</div>

> [@Perry\\\_Clarke](#):
>
> I’ve just posted a new test release to Github which fixes many bugs.&nbsp; Give it a whirl, it should fix this issue.

Just downloaded the latest version from GitHub and gave it a try. I don’t see any difference. &nbsp;I set a breakpoint on line 10, but when I hit run debugger it always starts at 1 and I have no way to actually go to the specific breakpoints.

It would be nice to have a dialog that pops up “You do not have any breakpoints, single step from the beginning?”. &nbsp;Otherwise, it would only stop on the breakpoints specified rather than single stepping entire code line by line.

Other than that, I love how well the debugger was integrated into Sublime. &nbsp;When I spoke with Walter about it, didn’t think it would be so quick or so perfectly executed. &nbsp;

---

<div class="post-metadata">

**Author:** ![Perry\_Clarke](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/p/bc79bd/32.png) [@Perry\_Clarke](https://forums.solar2d.com/u/Perry_Clarke)\
**Post date:** [December 6, 2013, 9:09pm UTC](https://forums.solar2d.com/t/breakpoints/320500/4 "2013-12-06T21:09:06Z")

</div>

Oh, now I understand. &nbsp;I’m afraid the “start at line 1” behavior is baked into the underlying debugger implementation so that’s how it will work for now (you’ll have to “continue” once to hit your own breakpoint). &nbsp;I plan to improve the debugger a lot (with things like variable watching, run to cursor, etc) and I’ll bear this in mind when I do that.

---

<div class="post-metadata">

**Author:** ![cspence](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@cspence](https://forums.solar2d.com/u/cspence)\
**Post date:** [December 6, 2013, 9:13pm UTC](https://forums.solar2d.com/t/breakpoints/320500/5 "2013-12-06T21:13:38Z")

</div>

> [@Perry\\\_Clarke](#):
>
> Oh, now I understand. &nbsp;I’m afraid the “start at line 1” behavior is baked into the underlying debugger implementation so that’s how it will work for now (you’ll have to “continue” once to hit your own breakpoint). &nbsp;I plan to improve the debugger a lot (with things like variable watching, run to cursor, etc) and I’ll bear this in mind when I do that.

I can live with it hitting 1 first, be nice not to but that’s not a huge issue if breakpoints work from next step. &nbsp;I can’t find a way to “continue” if I hit step into or step over it will go to line 2, not my first breakpoint. &nbsp;

---

<div class="post-metadata">

**Author:** ![Perry\_Clarke](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/p/bc79bd/32.png) [@Perry\_Clarke](https://forums.solar2d.com/u/Perry_Clarke)\
**Post date:** [December 6, 2013, 9:18pm UTC](https://forums.solar2d.com/t/breakpoints/320500/6 "2013-12-06T21:18:38Z")

</div>

Just “Run” again when the Debugger is active and it’ll carry on to the next breakpoint.

So, to hit your own breakpoint: Hit F10 to start the Debugger, wait for it to open and then hit F10 again to continue to the first breakpoint.

I fear that my familiarity with debuggers might have made me assume that this is obvious when clearly it isn’t so I’ll think about how to make it easier to discover.

---

<div class="post-metadata">

**Author:** ![cspence](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@cspence](https://forums.solar2d.com/u/cspence)\
**Post date:** [December 6, 2013, 9:22pm UTC](https://forums.solar2d.com/t/breakpoints/320500/7 "2013-12-06T21:22:53Z")

</div>

> [@Perry\\\_Clarke](#):
>
> Just “Run” again when the Debugger is active and it’ll carry on to the next breakpoint.
> 
> So, to hit your own breakpoint: Hit F10 to start the Debugger, wait for it to open and then hit F10 again to continue to the first breakpoint.
> 
> I fear that my familiarity with debuggers might have made me assume that this is obvious when clearly it isn’t so I’ll think about how to make it easier to discover.

That worked, thanks!

I’m used to use Step Into/Step over to move forward so I didn’t catch onto that.

---

<div class="post-metadata">

**Author:** ![cspence](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@cspence](https://forums.solar2d.com/u/cspence)\
**Post date:** [December 6, 2013, 9:25pm UTC](https://forums.solar2d.com/t/breakpoints/320500/8 "2013-12-06T21:25:23Z")

</div>

Maybe just call it “Step” or “Run - Step”

It didn’t even dawn on me that was the step function. &nbsp;I thought it was just a run, maybe a run toggle.

---

<div class="post-metadata">

**Author:** ![benny5](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/b/278dde/32.png) [@benny5](https://forums.solar2d.com/u/benny5)\
**Post date:** [December 12, 2013, 7:00pm UTC](https://forums.solar2d.com/t/breakpoints/320500/9 "2013-12-12T19:00:17Z")

</div>

Just wanna vote for the break on line 1 removal in the debugger. It’s really annoying 🙂

I’d also like the corona simulator window to take focus until a breakpoint fires so there’s minimal manual window switching. (i’m a UX nut, I know)

---

<div class="post-metadata">

**Author:** ![haakon](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/h/b9bd4f/32.png) [@haakon](https://forums.solar2d.com/u/haakon)\
**Post date:** [December 12, 2013, 8:29pm UTC](https://forums.solar2d.com/t/breakpoints/320500/10 "2013-12-12T20:29:36Z")

</div>

The debugger is totally useless in bigger projects using scenes. Running the simulator in debug mode brings it straight up too 100%+ CPU usage, and simple things like tapping a button takes 20-40 seconds to respond.

Anyway, we’ve never had any success with the Corona debugger tools, so this is no big surprise, and we can still live without it - print(“FTW”).

---

<div class="post-metadata">

**Author:** ![Perry\_Clarke](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/p/bc79bd/32.png) [@Perry\_Clarke](https://forums.solar2d.com/u/Perry_Clarke)\
**Post date:** [December 12, 2013, 8:30pm UTC](https://forums.solar2d.com/t/breakpoints/320500/11 "2013-12-12T20:30:17Z")

</div>

Noted. Controlling window focus has it’s own pitfalls but I’ll see what I can do.

---

<div class="post-metadata">

**Author:** ![benny5](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/b/278dde/32.png) [@benny5](https://forums.solar2d.com/u/benny5)\
**Post date:** [December 12, 2013, 9:11pm UTC](https://forums.solar2d.com/t/breakpoints/320500/12 "2013-12-12T21:11:16Z")

</div>

Absolutely. It can’t go switching back and forth on a whim. But when it doesn’t stop on line one then i’d like it to at least show the simulator on top from the start and when something breaks you’d probably need to switch yourself or i think everyone would get annoyed.

---

<div class="post-metadata">

**Author:** ![Perry\_Clarke](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/p/bc79bd/32.png) [@Perry\_Clarke](https://forums.solar2d.com/u/Perry_Clarke)\
**Post date:** [December 6, 2013, 8:43pm UTC](https://forums.solar2d.com/t/breakpoints/320500/13 "2013-12-06T20:43:51Z")

</div>

I’ve just posted a new test release to Github which fixes many bugs.&nbsp; Give it a whirl, it should fix this issue.

---

<div class="post-metadata">

**Author:** ![cspence](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@cspence](https://forums.solar2d.com/u/cspence)\
**Post date:** [December 6, 2013, 8:55pm UTC](https://forums.solar2d.com/t/breakpoints/320500/14 "2013-12-06T20:55:47Z")

</div>

> [@Perry\\\_Clarke](#):
>
> I’ve just posted a new test release to Github which fixes many bugs.&nbsp; Give it a whirl, it should fix this issue.

Just downloaded the latest version from GitHub and gave it a try. I don’t see any difference. &nbsp;I set a breakpoint on line 10, but when I hit run debugger it always starts at 1 and I have no way to actually go to the specific breakpoints.

It would be nice to have a dialog that pops up “You do not have any breakpoints, single step from the beginning?”. &nbsp;Otherwise, it would only stop on the breakpoints specified rather than single stepping entire code line by line.

Other than that, I love how well the debugger was integrated into Sublime. &nbsp;When I spoke with Walter about it, didn’t think it would be so quick or so perfectly executed. &nbsp;

---

<div class="post-metadata">

**Author:** ![Perry\_Clarke](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/p/bc79bd/32.png) [@Perry\_Clarke](https://forums.solar2d.com/u/Perry_Clarke)\
**Post date:** [December 6, 2013, 9:09pm UTC](https://forums.solar2d.com/t/breakpoints/320500/15 "2013-12-06T21:09:06Z")

</div>

Oh, now I understand. &nbsp;I’m afraid the “start at line 1” behavior is baked into the underlying debugger implementation so that’s how it will work for now (you’ll have to “continue” once to hit your own breakpoint). &nbsp;I plan to improve the debugger a lot (with things like variable watching, run to cursor, etc) and I’ll bear this in mind when I do that.

---

<div class="post-metadata">

**Author:** ![cspence](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@cspence](https://forums.solar2d.com/u/cspence)\
**Post date:** [December 6, 2013, 9:13pm UTC](https://forums.solar2d.com/t/breakpoints/320500/16 "2013-12-06T21:13:38Z")

</div>

> [@Perry\\\_Clarke](#):
>
> Oh, now I understand. &nbsp;I’m afraid the “start at line 1” behavior is baked into the underlying debugger implementation so that’s how it will work for now (you’ll have to “continue” once to hit your own breakpoint). &nbsp;I plan to improve the debugger a lot (with things like variable watching, run to cursor, etc) and I’ll bear this in mind when I do that.

I can live with it hitting 1 first, be nice not to but that’s not a huge issue if breakpoints work from next step. &nbsp;I can’t find a way to “continue” if I hit step into or step over it will go to line 2, not my first breakpoint. &nbsp;

---

<div class="post-metadata">

**Author:** ![Perry\_Clarke](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/p/bc79bd/32.png) [@Perry\_Clarke](https://forums.solar2d.com/u/Perry_Clarke)\
**Post date:** [December 6, 2013, 9:18pm UTC](https://forums.solar2d.com/t/breakpoints/320500/17 "2013-12-06T21:18:38Z")

</div>

Just “Run” again when the Debugger is active and it’ll carry on to the next breakpoint.

So, to hit your own breakpoint: Hit F10 to start the Debugger, wait for it to open and then hit F10 again to continue to the first breakpoint.

I fear that my familiarity with debuggers might have made me assume that this is obvious when clearly it isn’t so I’ll think about how to make it easier to discover.

---

<div class="post-metadata">

**Author:** ![cspence](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@cspence](https://forums.solar2d.com/u/cspence)\
**Post date:** [December 6, 2013, 9:22pm UTC](https://forums.solar2d.com/t/breakpoints/320500/18 "2013-12-06T21:22:53Z")

</div>

> [@Perry\\\_Clarke](#):
>
> Just “Run” again when the Debugger is active and it’ll carry on to the next breakpoint.
> 
> So, to hit your own breakpoint: Hit F10 to start the Debugger, wait for it to open and then hit F10 again to continue to the first breakpoint.
> 
> I fear that my familiarity with debuggers might have made me assume that this is obvious when clearly it isn’t so I’ll think about how to make it easier to discover.

That worked, thanks!

I’m used to use Step Into/Step over to move forward so I didn’t catch onto that.

---

<div class="post-metadata">

**Author:** ![cspence](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@cspence](https://forums.solar2d.com/u/cspence)\
**Post date:** [December 6, 2013, 9:25pm UTC](https://forums.solar2d.com/t/breakpoints/320500/19 "2013-12-06T21:25:23Z")

</div>

Maybe just call it “Step” or “Run - Step”

It didn’t even dawn on me that was the step function. &nbsp;I thought it was just a run, maybe a run toggle.

---

<div class="post-metadata">

**Author:** ![benny5](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/b/278dde/32.png) [@benny5](https://forums.solar2d.com/u/benny5)\
**Post date:** [December 12, 2013, 7:00pm UTC](https://forums.solar2d.com/t/breakpoints/320500/20 "2013-12-12T19:00:17Z")

</div>

Just wanna vote for the break on line 1 removal in the debugger. It’s really annoying 🙂

I’d also like the corona simulator window to take focus until a breakpoint fires so there’s minimal manual window switching. (i’m a UX nut, I know)

[Next page](https://forums.solar2d.com/t/breakpoints/320500.md?page=2)
