Open ibobak opened 2 months ago
Thanks for the issue. I can repro without a notebook too. Retrieving the value for cat_features
is causing pydevd to crash.
Here's the logs from my crash: debugpy.server-11776.zip
Rich, if you tell me how to get the logs, next time I will know how to do this and will attach them.
I'm actually not sure how to do it when jupyter debugging, but if you're using a launch.json (for a python file), it's a setting:
{
"name": "Python Debugger: Current File",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"logToFile": true, // This setting
"justMyCode": false
}
It writes the logs to where the python debugger extension is installed. In my case, that's here:
C:\Users\rchiodo.vscode\extensions\ms-python.debugpy-2024.7.11591013-win32-x64
Type: Bug
Behaviour
When I am debugging a constructor of the object and in that debug session I am trying to expand "self" in the watch window, the python process crashes,
Steps to reproduce:
train_data = [[1, 4, 5, 6], [4, 5, 6, 7], [30, 40, 50, 60]]
eval_data = [[2, 4, 6, 8], [1, 4, 50, 60]]
train_labels = [10, 20, 30]
p = Pool(data=train_data, label=train_labels)
Initialize CatBoostRegressor
model = CatBoostRegressor(iterations=2, learning_rate=1, depth=2)
Fit model
model.fit(train_data, train_labels)
Get predictions
preds = model.predict(eval_data)
p = Pool(data=train_data, label=train_labels)
with log_fixup(log_cout, log_cerr):
XXX
XXX
XXX
vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscoreces:30445986 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 2i9eh265:30646982 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonnoceb:30805159 asynctok:30898717 pythonregdiag2:30936856 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 accentitlementst:30995554 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 jchc7451:31067544 chatpanelt:31048053 dsvsc021:30996838 9c06g630:31013171 pythoncenvpt:31062603 a69g1124:31058053 dvdeprecation:31068756 dwnewjupyter:31046869 2f103344:31071589 legacy_priority:31077528