Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@
</select>
<span class="data-view">runtime in data: {{ launchConfig.lambda.runtime }}</span>
</div>
<div class="config-item">
<label for="useDebugger">Attach a debugger</label>
<input type="checkbox" id="useDebugger" v-model="useDebugger" name="useDebugger" />
</div>
</div>
<div class="target-template" v-else-if="launchConfig.invokeTarget.target === 'template'">
<div class="config-item">
Expand Down Expand Up @@ -195,6 +199,10 @@
For invoke the runtime defined in the template is used.
</p>
</div>
<div class="config-item">
<label for="useDebugger">Attach a debugger</label>
<input type="checkbox" id="useDebugger" v-model="useDebugger" name="useDebugger" />
</div>
</div>
<div class="target-apigw" v-else-if="launchConfig.invokeTarget.target === 'api'">
<button v-on:click.prevent="loadResource">Load resource</button><br />
Expand Down Expand Up @@ -229,6 +237,10 @@
</select>
<span class="data-view">runtime in data: {{ launchConfig.lambda.runtime }}</span>
</div>
<div class="config-item">
<label for="useDebugger">Attach a debugger</label>
<input type="checkbox" id="useDebugger" v-model="useDebugger" name="useDebugger" />
</div>
<div class="config-item">
<label for="path">Path</label>
<input type="text" v-model="launchConfig.api.path" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ interface SamInvokeVueData {
showNameInput: boolean
newTestEventName: string
resourceData: ResourceData | undefined
useDebugger: boolean
Copy link
Contributor

@justinmk3 justinmk3 Apr 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this probably isn't needed either, because launchConfig on line 33 should already have noDebug field.

oh but if this is "binding" to the vue, maybe this is needed easier/clearer.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is binding to the vue.

}

function newLaunchConfig(existingConfig?: AwsSamDebuggerConfiguration): AwsSamDebuggerConfigurationLoose {
Expand Down Expand Up @@ -112,6 +113,7 @@ function initData() {
return {
containerBuild: false,
skipNewImageCheck: false,
useDebugger: true,
launchConfig: newLaunchConfig(),
payload: { value: '', errorMsg: '' },
apiPayload: { value: '', errorMsg: '' },
Expand Down Expand Up @@ -449,6 +451,7 @@ export default defineComponent({
},
}
: undefined,
noDebug: !this.useDebugger,
}
},
clearForm() {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "Feature",
"description": "AppBuilder: unchecking the 'Attach a debugger' checkbox in local invoke webview invokes the function without a debugger"
}
Loading