Skip to content

Commit

Permalink
Just show the SQL line under the place where it is called
Browse files Browse the repository at this point in the history
  • Loading branch information
yazz committed Nov 21, 2024
1 parent 5b7745f commit 5c1fb68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/go.html
Original file line number Diff line number Diff line change
Expand Up @@ -9652,7 +9652,7 @@

<div v-if="selectedLogItemContextStartLineNumber">
<pre style="height: auto;"><span style="color: blue;" v-if="selectedTraceLogItemArguments">ARGS: {{selectedTraceLogItemArguments.slice(1)}}</span>
<template v-for="(contextLine,indexContextLine) in yz.uiDb.linesOfSourceFile[ selectedLogItemFileName].slice(selectedLogItemContextStartLineNumber,selectedLogItemContextEndLineNumber)"><span v-bind:style='selectedLogItemContextLineNumber==(selectedLogItemContextStartLineNumber + indexContextLine + 1)?"color:red":""'>{{selectedLogItemContextStartLineNumber + indexContextLine + 1}}: {{contextLine}}</span><span v-if="traceLogItemCalls[selectedLogItemContextStartLineNumber + indexContextLine + 1]" style="color: red;"><div v-for="logItemId in traceLogItemCalls[selectedLogItemContextStartLineNumber + indexContextLine + 1]"><debug_frame_component v-bind:log_id="logItemId" v-bind:key="logItemId"></debug_frame_component></div></span><div v-if="sqlUiDbUpdates[log_id] && (sqlUiDbUpdates[log_id].lineNumbers[(selectedLogItemContextStartLineNumber + indexContextLine + 1)])" style="color: white;background-color: black;">{{sqlUiDbUpdates[log_id].lineNumbers[(selectedLogItemContextStartLineNumber + indexContextLine + 1)]}}</div>
<template v-for="(contextLine,indexContextLine) in yz.uiDb.linesOfSourceFile[ selectedLogItemFileName].slice(selectedLogItemContextStartLineNumber,selectedLogItemContextEndLineNumber)"><span v-bind:style='selectedLogItemContextLineNumber==(selectedLogItemContextStartLineNumber + indexContextLine + 1)?"color:red":""'>{{selectedLogItemContextStartLineNumber + indexContextLine + 1}}: {{contextLine}}</span><span v-if="traceLogItemCalls[selectedLogItemContextStartLineNumber + indexContextLine + 1]" style="color: red;"><div v-for="logItemId in traceLogItemCalls[selectedLogItemContextStartLineNumber + indexContextLine + 1]"><debug_frame_component v-bind:log_id="logItemId" v-bind:key="logItemId"></debug_frame_component></div></span><div v-if="sqlUiDbUpdates[log_id] && (sqlUiDbUpdates[log_id].lineNumbers[(selectedLogItemContextStartLineNumber + indexContextLine + 1)])" style="color: white;background-color: black;"><div v-for="logr in sqlUiDbUpdates[log_id].lineNumbers[(selectedLogItemContextStartLineNumber + indexContextLine + 1)]">{{logr.sql_statement}}</div></div>
</template>
</pre>
<div v-if="sqlUiDbUpdates[log_id]" style="color: white;background-color: black;">{{sqlUiDbUpdates[log_id]}}</div>
Expand Down

0 comments on commit 5c1fb68

Please sign in to comment.