# App functions - how to debug with VS code

**URL:** <https://community.dynatrace.com/t/app-functions-how-to-debug-with-vs-code/52352>\
**Category:** Developer Q&A Forum\
**Created:** [July 4, 2025, 10:13am UTC](https://community.dynatrace.com/t/app-functions-how-to-debug-with-vs-code/52352 "2025-07-04T10:13:34Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![dani\_coll](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dani_coll/32/33669_2.png) [@dani\_coll](https://community.dynatrace.com/u/dani_coll)\
**Post date:** [September 15, 2025, 10:00am UTC](https://community.dynatrace.com/t/app-functions-how-to-debug-with-vs-code/52352/4 "2025-09-15T10:00:12Z")

</div>

Yes, it should be the body. Using the **fetch** command it’s something like this

```markup
const method = options?.data ? 'POST' : 'GET';
const body = options?.data ? JSON.stringify(options.data) : undefined;

const response = await fetch(`/api/${functionName}`, { body, method });

```

---

_[View the full topic](https://community.dynatrace.com/t/app-functions-how-to-debug-with-vs-code/52352)._
