콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
9948 화면

I am currently a trainee as an odoo developer. There are multiple IDEs where we can use debug odoo like my team mates are doing. some on pycharm, some on eclipse and so on. I used to do development on Visual Studio code and run through Python interpreter. But now, I want to switch to proper IDE. I have downloaded visual studio 2019 for this purpose.

My question is, how to create and edit debug configuration for odoo like we do in pycharm. what I did is

  1. created a new project of python application
  2. right click on solution > add > existing folder and then selected whole odoo folder that I have downloaded from github
  3. right click on solution > properties and in general tab, I gave path of 'odoo-bin' against 'startup file' and in debug tab, gave configuration of odoo i.e.
    (-r db_user -w db_password --addons-path=addons).

now, every time it breaks debugging and shows error

exception thrown (None,)

please guide me how to setup odoo on visual studio

아바타
취소
작성자

new to odoo but in practice of python since more than 4 years. and use visual studio code and visual studo for development purpose and jupyter for AI things.

used to of these environments. that's why.

베스트 답변

At our company we're using Visual Studio 2019 for Odoo live debugging.

Getting the same error as you with an exception being thrown of type "none".
Solution was to go to "Debug > Windows > Exception Settings".
Then right click "Python" and click "Continue when unhandled in user code".

I suspect a recently Microsoft VS update caused a mishandled exception to be a false positive, this worked fine for over a year before updating. Hope that helps.

아바타
취소
관련 게시물 답글 화면 활동
1
2월 24
1396
1
12월 20
4319
1
8월 20
3448
0
3월 15
4602
1
3월 15
5899