Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • AppImage
  • WorkSpace
  • cmake
  • evdev
  • exclamation-mark-completion
  • gb.chart2
  • gb.git
  • gb.joystick
  • gb.net.imap
  • gb.spreadsheet
  • gb.test
  • gb.test.tap
  • master
  • newdialogs
  • stable
  • 3.11.0
  • 3.11.1
  • 3.11.2
  • 3.11.3
  • 3.11.4
  • 3.12.0
  • 3.12.1
  • 3.12.2
  • 3.13.0
  • 3.14.0
  • 3.14.1
  • 3.14.2
  • 3.14.3
  • 3.15.0
  • 3.15.1
  • 3.15.2
  • 3.16.0
  • 3.16.1
  • 3.16.2
  • 3.16.3
  • 3.17.0
  • 3.17.1
  • 3.17.2
  • 3.17.3
  • 3.18.0
  • 3.18.1
  • 3.18.2
  • 3.18.3
  • 3.18.4
  • 3.19.0
  • 3.19.1
  • 3.19.2
  • 3.19.3
  • 3.19.4
  • 3.19.5
  • 3.19.6
  • 3.20.0
  • 3.20.1
  • 3.20.2
  • help
  • v1.9.44
  • v1.9.45
  • v1.9.46
  • v1.9.47
  • v1.9.48
  • v1.9.49
  • v1.9.50
  • v1.9.51
  • v1.9.90
  • v1.9.91
  • v1.9.92
  • v2.0.0
  • v2.1
  • v2.1.1
  • v2.10
  • v2.10.1
  • v2.10.2
  • v2.11
  • v2.11.1
  • v2.12
  • v2.13
  • v2.13.1
  • v2.14
  • v2.15
  • v2.15.1
  • v2.15.2
  • v2.16.0
  • v2.17.0
  • v2.18.0
  • v2.19.0
  • v2.2
  • v2.2.1
  • v2.20.0
  • v2.20.1
  • v2.20.2
  • v2.21.0
  • v2.22.0
  • v2.23.0
  • v2.23.1
  • v2.24.0
  • v2.3
  • v2.4
  • v2.4.1
  • v2.5
  • v2.6
  • v2.7
  • v2.8
  • v2.8.1
  • v2.8.2
  • v2.9
  • v2.9.0
  • v2.99.1
  • v2.99.2
  • v2.99.3
  • v2.99.4
  • v2.99.5
  • v2.99.6
  • v2.99.7
  • v3.0.0
  • v3.1.0
115 results

Target

Select target project
  • xmonader/gambas
  • gambas/gambas
  • gbWilly/gambas
  • dtardon/gambas
  • Davidmue/gambas
  • mmu_man/gambas
  • jguardon/gambas
  • tstueker/gambas
  • timsoft/gambas
  • yann64/gambas
  • Matthew-Collins/gambas
  • microhobby/gambas
  • ercoupeflyer/gambas
  • pebauer68/gambas
  • ptmarstech/gambas
  • christhal/gambas
  • tboege/gambas
  • christopherwoo/gambas
  • yusronarif/gambas
  • gen.braga/gambas
  • MelvinG24/gambas
  • Krischel/gambas
  • liang-wei/gambas
  • brucebruen/gambas
  • LibreDWG/gambas
  • SkyN9ne/gambas
  • zxMarce/gambas
  • lordheavy/gambas
  • ddabrahams76/gambas
  • GianluigiOr/gambas
  • rfc1394/gambas
  • wekan/gambas
  • bsteers4/gambas
  • fweimer-rh/gambas
  • CDCDCDCDCDCD/gambas
  • geekdu42/gambas
  • belmotek/gambas
  • jfrank1500/gambas
  • mfischerq/gambas
  • shiny0110/gambas
  • kk667788/gambas
  • bandali/gambas
  • 64sys/gambas
  • justlostintime/gambas
  • aleasto/gambas
  • bgermann/gambas
  • linusky/gambas
47 results
Select Git revision
  • AppImage
  • WorkSpace
  • cmake
  • evdev
  • exclamation-mark-completion
  • gb.chart2
  • gb.git
  • gb.joystick
  • gb.net.imap
  • gb.spreadsheet
  • gb.test
  • gb.test.tap
  • master
  • newdialogs
  • stable
  • 3.11.0
  • 3.11.1
  • 3.11.2
  • 3.11.3
  • 3.11.4
  • 3.12.0
  • 3.12.1
  • 3.12.2
  • 3.13.0
  • 3.14.0
  • 3.14.1
  • 3.14.2
  • 3.14.3
  • 3.15.0
  • 3.15.1
  • 3.15.2
  • 3.16.0
  • 3.16.1
  • 3.16.2
  • 3.16.3
  • 3.17.0
  • 3.17.1
  • 3.17.2
  • 3.17.3
  • 3.18.0
  • 3.18.1
  • 3.18.2
  • 3.18.3
  • 3.18.4
  • 3.19.0
  • 3.19.1
  • 3.19.2
  • 3.19.3
  • 3.19.4
  • 3.19.5
  • 3.19.6
  • 3.20.0
  • 3.20.1
  • 3.20.2
  • help
  • v1.9.44
  • v1.9.45
  • v1.9.46
  • v1.9.47
  • v1.9.48
  • v1.9.49
  • v1.9.50
  • v1.9.51
  • v1.9.90
  • v1.9.91
  • v1.9.92
  • v2.0.0
  • v2.1
  • v2.1.1
  • v2.10
  • v2.10.1
  • v2.10.2
  • v2.11
  • v2.11.1
  • v2.12
  • v2.13
  • v2.13.1
  • v2.14
  • v2.15
  • v2.15.1
  • v2.15.2
  • v2.16.0
  • v2.17.0
  • v2.18.0
  • v2.19.0
  • v2.2
  • v2.2.1
  • v2.20.0
  • v2.20.1
  • v2.20.2
  • v2.21.0
  • v2.22.0
  • v2.23.0
  • v2.23.1
  • v2.24.0
  • v2.3
  • v2.4
  • v2.4.1
  • v2.5
  • v2.6
  • v2.7
  • v2.8
  • v2.8.1
  • v2.8.2
  • v2.9
  • v2.9.0
  • v2.99.1
  • v2.99.2
  • v2.99.3
  • v2.99.4
  • v2.99.5
  • v2.99.6
  • v2.99.7
  • v3.0.0
  • v3.1.0
115 results
Show changes
Commits on Source (2)
......@@ -306,6 +306,7 @@ Public Sub Debug_Read(Data As String)
Dim sError As String
Dim sWhere As String
Dim iPos As Integer
Dim sComp As String
'Debug Quote(Data)
$sBuffer &= Data
......@@ -359,32 +360,39 @@ Public Sub Debug_Read(Data As String)
Endif
aPos = Split(Trim(aData[2]), " ")
While aPos.Count
If aPos.Last <> "?" Then Break
aPos.Remove(aPos.Max)
Wend
For Each sPos In aPos
If sPos = "?" Then Continue
aFrame = Scan(sPos, "*.*.*")
aFrame = Scan(sPos, "[[]*].*.*.*")
sClass = aFrame[0]
sComp = aFrame[0]
sClass = aFrame[1]
iLine = 0
Try iLine = CInt(aFrame[2])
Try iLine = CInt(aFrame[3])
If sClass Then
iPos = RInStr(sClass, ":")
If iPos Then sClass = Mid$(sClass, iPos + 1)
If Project.Exist(sClass) Then Break
If sComp = "$" And If iLine Then Break
sClass = ""
Endif
Next
If iLine = 0 Then sClass = ""
'If iLine = 0 Then sClass = ""
$sError = ""
If aData[1] Then
If sClass Then SetPosition(sClass, iLine)
Else
If Not sClass Or If SetPosition(sClass, iLine) Then
If Not DebugInside Then
If $bIgnoreNextInfo Then
$bIgnoreNextInfo = False
Else
......@@ -393,6 +401,7 @@ Public Sub Debug_Read(Data As String)
Return
Endif
Endif
Endif
FDebugInfo.DefineVariable(Trim(aData[3]), Trim(aData[4]))
......
......@@ -95,31 +95,61 @@ Public Sub EnableStack(bOn As Boolean)
End
Public Sub FillStack(aPos As String[]) As Boolean
Public Sub FillStack(aStack As String[]) As Boolean
Dim sPos As String
Dim iInd As Integer
Dim sKey As String
Dim W As Integer
Dim sStack As String
Dim iPos As Integer
Dim sComp As String
Dim sLastComp As String = "$"
Dim hCompFont As Font
Object.Lock(lvwStack)
If lvwStack.Count And If aPos[0] = lvwStack[0].Text Then
If lvwStack.Count And If aStack[0] = lvwStack[0].Tag Then
sKey = lvwStack.Key
Else
sKey = 0
Endif
hCompFont = lvwStack.Font.Copy()
hCompFont.Bold = True
hCompFont.Grade = -2
lvwStack.Clear
W = Desktop.Scale * 16
For Each sPos In aPos
If sPos = "?" Then
For Each sStack In aStack
If sStack = "?" Then
lvwStack.Add(iInd, "(" & ("native code") & ")").Foreground = Color.LightForeground
Else
lvwStack.Add(iInd, sPos)
sPos = sStack
If sPos Begins "[" Then
iPos = InStr(sPos, "].")
If iPos Then
sComp = Mid$(sPos, 2, iPos - 2)
sPos = Mid$(sPos, iPos + 2)
Endif
Endif
If sComp <> sLastComp Then
sLastComp = sComp
If sComp = "$" Then sComp = "(" & ("Project") & ")"
With lvwStack.Add("@" & CStr(iInd), sComp)
.Background = Color.Merge(Color.TextBackground, Color.LightForeground)
.Font = hCompFont
End With
Endif
If sPos Not Ends ".0" Then
lvwStack.Add(iInd, sPos).Tag = sStack
W = Max(W, lvwStack.Font.TextWidth(sPos))
Endif
Endif
Inc iInd
Next
......@@ -139,14 +169,17 @@ Public Sub lvwStack_Click()
Dim sLoc As String
If Not lvwStack.Current.Tag Then Return
Design.Command("@" & lvwStack.Key)
FDebugExpr.RefreshAll
RefreshAllWatch
sLoc = lvwStack.Current.Text
sLoc = lvwStack.Current.Tag
If InStr(sLoc, "(") Then Return
If sLoc Not Begins "[$]." Then Return
Project.Goto(sLoc)
Project.Goto(Mid$(sLoc, 5))
Catch
......
app/src/gambas3/img/module/class.png

937 B | W: 0px | H: 0px

app/src/gambas3/img/module/class.png

997 B | W: 0px | H: 0px

app/src/gambas3/img/module/class.png
app/src/gambas3/img/module/class.png
app/src/gambas3/img/module/class.png
app/src/gambas3/img/module/class.png
  • 2-up
  • Swipe
  • Onion skin
app/src/gambas3/img/module/module.png

578 B | W: 0px | H: 0px

app/src/gambas3/img/module/module.png

601 B | W: 0px | H: 0px

app/src/gambas3/img/module/module.png
app/src/gambas3/img/module/module.png
app/src/gambas3/img/module/module.png
app/src/gambas3/img/module/module.png
  • 2-up
  • Swipe
  • Onion skin
app/src/gambas3/img/module/report.png

338 B | W: 0px | H: 0px

app/src/gambas3/img/module/report.png

596 B | W: 0px | H: 0px

app/src/gambas3/img/module/report.png
app/src/gambas3/img/module/report.png
app/src/gambas3/img/module/report.png
app/src/gambas3/img/module/report.png
  • 2-up
  • Swipe
  • Onion skin
app/src/gambas3/img/module/test.png

482 B | W: 0px | H: 0px

app/src/gambas3/img/module/test.png

444 B | W: 0px | H: 0px

app/src/gambas3/img/module/test.png
app/src/gambas3/img/module/test.png
app/src/gambas3/img/module/test.png
app/src/gambas3/img/module/test.png
  • 2-up
  • Swipe
  • Onion skin
app/src/gambas3/img/module/webform.png

2.37 KiB | W: 0px | H: 0px

app/src/gambas3/img/module/webform.png

2.02 KiB | W: 0px | H: 0px

app/src/gambas3/img/module/webform.png
app/src/gambas3/img/module/webform.png
app/src/gambas3/img/module/webform.png
app/src/gambas3/img/module/webform.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -74,7 +74,12 @@ const char *DEBUG_get_position(CLASS *cp, FUNCTION *fp, PCODE *pc)
{
#if DEBUG_MEMORY
static char buffer[256];
const int buffer_size = sizeof(buffer);
#else
char *buffer = COMMON_buffer;
const int buffer_size = COMMON_BUF_MAX;
#endif
ushort line = 0;
if (!cp || !pc)
......@@ -83,21 +88,22 @@ const char *DEBUG_get_position(CLASS *cp, FUNCTION *fp, PCODE *pc)
if (fp != NULL && fp->debug)
calc_line_from_position(cp, fp, pc, &line);
#if DEBUG_MEMORY
snprintf(buffer, sizeof(buffer), "%s.%s.%d",
cp ? cp->name : "?",
if (cp->component)
{
snprintf(buffer, buffer_size, "[%s].%s.%s.%d",
cp->component->name, cp->name,
(fp && fp->debug) ? fp->debug->name : "?",
line);
return buffer;
#else
snprintf(COMMON_buffer, COMMON_BUF_MAX, "%.64s.%.64s.%d",
}
else
{
snprintf(buffer, buffer_size, "%s.%s.%d",
cp->name,
(fp && fp->debug) ? fp->debug->name : "?",
line);
}
return COMMON_buffer;
#endif
return buffer;
}
......
......@@ -648,12 +648,8 @@ void DEBUG_backtrace(FILE *out)
{
int i, n;
STACK_CONTEXT *context;
ushort line;
if (CP)
fprintf(out, "%s", DEBUG_get_current_position());
else
fprintf(out, "?");
//for (i = 0; i < (STACK_frame_count - 1); i++)
n = 0;
......@@ -663,7 +659,9 @@ void DEBUG_backtrace(FILE *out)
if (!context)
break;
if (context->pc)
n += fprintf(out, " %s", DEBUG_get_position(context->cp, context->fp, context->pc));
/*if (context->pc)
{
line = 0;
if (DEBUG_calc_line_from_position(context->cp, context->fp, context->pc, &line))
......@@ -672,7 +670,7 @@ void DEBUG_backtrace(FILE *out)
n += fprintf(out, " %s.%s.%d", context->cp->name, context->fp->debug->name, line);
}
else if (context->cp)
n += fprintf(out, " ?");
n += fprintf(out, " ?");*/
if (n >= (DEBUG_OUTPUT_MAX_SIZE / 2))
{
......@@ -1063,25 +1061,30 @@ void DEBUG_breakpoint(int id)
const char *DEBUG_get_position(CLASS *cp, FUNCTION *fp, PCODE *pc)
{
if (pc)
{
const char *comp_name;
const char *class_name;
const char *func_name;
ushort line = 0;
if (fp != NULL && fp->debug)
DEBUG_calc_line_from_position(cp, fp, pc, &line);
if (!cp)
return "?";
snprintf(DEBUG_buffer, sizeof(DEBUG_buffer), "%.64s.%.64s.%d",
cp ? cp->name : "?",
(fp && fp->debug) ? fp->debug->name : "?",
line);
}
class_name = cp->name;
if (cp->component)
comp_name = cp->component->name;
else
comp_name = "$";
if (fp && fp->debug)
{
snprintf(DEBUG_buffer, sizeof(DEBUG_buffer), "%.64s.%.64s",
cp ? cp->name : "?",
(fp && fp->debug) ? fp->debug->name : "?");
func_name = fp->debug->name;
if (pc)
DEBUG_calc_line_from_position(cp, fp, pc, &line);
}
else
func_name = "?";
snprintf(DEBUG_buffer, sizeof(DEBUG_buffer), "[%s].%s.%s.%d", comp_name, class_name, func_name, line);
return DEBUG_buffer;
}
......
......@@ -47,7 +47,7 @@ EXTERN char DEBUG_buffer[];
EXTERN char *DEBUG_fifo;
#endif
#define DEBUG_BUFFER_MAX 255
#define DEBUG_BUFFER_MAX 512
#define GB_DEBUG (*DEBUG_interface)
......