Skip to content

Commit de7637e

Browse files
IDE v1.0.7 : Fixed Up Breakpoint Problems
1 parent 72a1978 commit de7637e

4 files changed

Lines changed: 73 additions & 49 deletions

File tree

EZ_IDE/IDE.Designer.cs

Lines changed: 59 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

EZ_IDE/IDE.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace EZ_IDE
1313
{
1414
public partial class IDE : Form
1515
{
16-
public static readonly string Version = "1.0.1";
16+
public static readonly string Version = "1.0.7";
1717

1818
#region AutoComplete
1919
readonly AutocompleteMenu popupMenu;
@@ -667,6 +667,7 @@ private void Higlight_timer_Tick(object? sender, EventArgs e)
667667
{
668668
FCTB_Highlight = Debug.HighlightTextbox;
669669
CurrentLine.Text = Debug.CurrentLineTextbox.Text;
670+
currentSegment.Text = Debug.ezcode.codeLine.ToString();
670671
fctb.ReadOnly = true;
671672
string[] vars = ezcode.vars.Select(x => $"'{x.Name}' = '{x.Value}'").ToArray();
672673
if (!varListItems.SequenceEqual(vars))

EZ_IDE/IDE.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183
AAEAAAD/////AQAAAAAAAAAMAgAAAEZTeXN0ZW0uV2luZG93cy5Gb3JtcywgQ3VsdHVyZT1uZXV0cmFs
184184
LCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5BQEAAAAmU3lzdGVtLldpbmRvd3MuRm9ybXMu
185185
SW1hZ2VMaXN0U3RyZWFtZXIBAAAABERhdGEHAgIAAAAJAwAAAA8DAAAACAgAAAJNU0Z0AUkBTAIBAQMB
186-
AAF4AQUBeAEFARABAAEQAQAE/wEZAQAI/wFCAU0BNgcAATYDAAEoAwABQAMAARADAAEBAQABGAYAAQwh
186+
AAGIAQUBiAEFARABAAEQAQAE/wEZAQAI/wFCAU0BNgcAATYDAAEoAwABQAMAARADAAEBAQABGAYAAQwh
187187
AAP/A/QD/jkAA/8DAAP/FQAD/gP7A/cD9gP5A/1RAAO9AbMBsgGxA+0zAAP5AbwBuwG8A88DvwP9DwAD
188188
/gP1A+AD0gHMAcsBzALTAdQD6gP8A/9LAAP+Ac8CzgHLAcoByAO7A/QqAAP9A8EC7wHwA+kD6APdA/8J
189189
AAP+A/UB2gLYAckCxQHBArwBtAGzAbQBrwGsAa4BwAG/AcAD5wP8SwAD7gHxAvAC7gHtAecB5QHkAcIB

EZ_IDE/Insert_Breakpoint.cs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,16 @@ public Insert_Breakpoint(IDE Ide, string text, int charNum, string file, bool sh
1919

2020
try
2121
{
22-
PopulateControls(text, GetLineIndex(text, charNum), file);
22+
int l = 0;
23+
try
24+
{
25+
l = GetLineIndex(text, charNum);
26+
}
27+
catch
28+
{
29+
30+
}
31+
PopulateControls(text, l, file);
2332
}
2433
catch
2534
{
@@ -34,15 +43,14 @@ public Insert_Breakpoint(IDE Ide, string text, int charNum, string file, bool sh
3443

3544
private void PopulateControls(string text, int lineIndex, string file)
3645
{
46+
FilePathTextBox.Text = file;
3747
string[] lines = text.Split('\n', '|');
3848

3949
if (lineIndex >= 0 && lineIndex < lines.Length)
4050
{
4151
string line = lines[lineIndex].Trim();
4252
string[] parts = line.Split(" ");
4353

44-
FilePathTextBox.Text = parts[0];
45-
4654
int methodLineIndex = lineIndex;
4755
while (methodLineIndex >= 0 && !lines[methodLineIndex].StartsWith("method"))
4856
{
@@ -60,7 +68,6 @@ private void PopulateControls(string text, int lineIndex, string file)
6068
SegmentNumericUpDown.Value = SegmentValue(lines, lineIndex, methodLineIndex);
6169
}
6270

63-
FilePathTextBox.Text = file;
6471
}
6572

6673
static int SegmentValue(string[] lines, int lineIndex, int methodLineIndex)

0 commit comments

Comments
 (0)