Skip to content

Commit 6714ca7

Browse files
authored
[App] Fix VSCode IDE debugger (#15747)
1 parent 1a31d13 commit 6714ca7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/lightning_app/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
4646
- Fixed race condition to over-write the frontend with app infos ([#15398](https://github.com/Lightning-AI/lightning/pull/15398))
4747

4848

49-
-
49+
- Fixed debugging with VSCode IDE ([#15747](https://github.com/Lightning-AI/lightning/pull/15747))
5050

5151

5252

src/lightning_app/core/app.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,17 +169,17 @@ def __init__(
169169

170170
logger.debug(f"ENV: {os.environ}")
171171

172-
def _update_index_file(self):
173-
# update index.html,
174-
# this should happen once for all apps before the ui server starts running.
175-
frontend.update_index_file(FRONTEND_DIR, info=self.info, root_path=self.root_path)
176-
177172
if _should_dispatch_app():
178173
os.environ["LIGHTNING_DISPATCHED"] = "1"
179174
from lightning_app.runners import MultiProcessRuntime
180175

181176
MultiProcessRuntime(self).dispatch()
182177

178+
def _update_index_file(self):
179+
# update index.html,
180+
# this should happen once for all apps before the ui server starts running.
181+
frontend.update_index_file(FRONTEND_DIR, info=self.info, root_path=self.root_path)
182+
183183
def get_component_by_name(self, component_name: str):
184184
"""Returns the instance corresponding to the given component name."""
185185
from lightning_app.structures import Dict as LightningDict

0 commit comments

Comments
 (0)