Blog categories

Comments

[Android] Debug 모드가 실행되지 않을 경우

[Android] Debug 모드가 실행되지 않을 경우

안드로이드 어플리케이션 개발 중에 Breakpoint를 잡고 Debug를 진행해도 잡히지 않는 경우가 있습니다. 해당 경우에는 AndroidManifest.xml 파일에 설정을 변경해주어야 합니다.

<application
    android:label="@string/app_name"
    ...
    android:debuggable="true">

프로젝트 최상단에 AndroidManifest.xml 을 열어 application 부분에 다음과 같이 android:debuggable=”true” 속성을 추가한 이후 디버그 모드로 실행하면 Breakpoint가 다시 잡히게 됩니다. 추가 이후에도 잡히지 않을 경우 Eclipse를 다시 실행하여 수행하면 Debug 모드가 수행되는 것을 볼 수 있습니다.

어떠한 경우에는 android:debuggable=”true” 에 다음과 같은 애러가 발생하는 경우가 있습니다.

Avoid hardcoding the debug mode; leaving it out allows debug and release builds to automatically assign one

위의 경우에는 관련 Lint를 꺼주시면 됩니다.
방법은상단 메뉴에 Project > Properties 창에 들어가 좌측 Android Lint Preferences 에 들가셔서 debug로 검색합니다.
Security > HardcodedDebugMode가 있는데 해당 항목의 Severity를 Ignore 해주시면 애러가 사라지는 것을 보실 수 있습니다.

Image module

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다

div#stuning-header .dfd-stuning-header-bg-container {background-image: url(https://tech.sangron.com/wp-content/uploads/sites/2/2014/01/java_wallpaper_background.jpg);background-color: #3f3f3f;background-size: cover;background-position: top center;background-attachment: initial;background-repeat: no-repeat;}#stuning-header div.page-title-inner {min-height: 350px;}#main-content .dfd-content-wrap {margin: 0px;} #main-content .dfd-content-wrap > article {padding: 0px;}@media only screen and (min-width: 1101px) {#layout.dfd-portfolio-loop > .row.full-width > .blog-section.no-sidebars,#layout.dfd-gallery-loop > .row.full-width > .blog-section.no-sidebars {padding: 0 0px;}#layout.dfd-portfolio-loop > .row.full-width > .blog-section.no-sidebars > #main-content > .dfd-content-wrap:first-child,#layout.dfd-gallery-loop > .row.full-width > .blog-section.no-sidebars > #main-content > .dfd-content-wrap:first-child {border-top: 0px solid transparent; border-bottom: 0px solid transparent;}#layout.dfd-portfolio-loop > .row.full-width #right-sidebar,#layout.dfd-gallery-loop > .row.full-width #right-sidebar {padding-top: 0px;padding-bottom: 0px;}#layout.dfd-portfolio-loop > .row.full-width > .blog-section.no-sidebars .sort-panel,#layout.dfd-gallery-loop > .row.full-width > .blog-section.no-sidebars .sort-panel {margin-left: -0px;margin-right: -0px;}}#layout .dfd-content-wrap.layout-side-image,#layout > .row.full-width .dfd-content-wrap.layout-side-image {margin-left: 0;margin-right: 0;}